From 7d03d3285aae6413f443e68dab791abbd86a570f Mon Sep 17 00:00:00 2001 From: scottl Date: Mon, 16 Apr 2007 19:40:13 +0000 Subject: Destroy the devalias before destroying the dev. --- sys/cam/scsi/scsi_sg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/cam') 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"); } -- cgit v1.1