summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2007-04-16 19:40:13 +0000
committerscottl <scottl@FreeBSD.org>2007-04-16 19:40:13 +0000
commit7d03d3285aae6413f443e68dab791abbd86a570f (patch)
treefc9c00423856209425f53ef549a5b52e04dc3821 /sys
parentd52d824cd82d238b93cd7d670f5552689df4cd37 (diff)
downloadFreeBSD-src-7d03d3285aae6413f443e68dab791abbd86a570f.zip
FreeBSD-src-7d03d3285aae6413f443e68dab791abbd86a570f.tar.gz
Destroy the devalias before destroying the dev.
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