summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/cam/scsi/scsi_sg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cam/scsi/scsi_sg.c b/sys/cam/scsi/scsi_sg.c
index 7645abd..ad7ceda 100644
--- a/sys/cam/scsi/scsi_sg.c
+++ b/sys/cam/scsi/scsi_sg.c
@@ -223,8 +223,8 @@ sgcleanup(struct cam_periph *periph)
softc = (struct sg_softc *)periph->softc;
devstat_remove_entry(softc->device_stats);
- destroy_dev(softc->dev);
destroy_dev(softc->devalias);
+ destroy_dev(softc->dev);
if (bootverbose) {
xpt_print(periph->path, "removing device entry\n");
}
OpenPOWER on IntegriCloud