summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2003-01-08 06:30:34 +0000
committerscottl <scottl@FreeBSD.org>2003-01-08 06:30:34 +0000
commit1848372445b1229b0b544b84ac4d0edb611774af (patch)
tree8d3faf52d4724142b3f22c8c6368d414273b6d2a /sys/dev
parent22123446613732c43641b63419a26f2859512a66 (diff)
downloadFreeBSD-src-1848372445b1229b0b544b84ac4d0edb611774af.zip
FreeBSD-src-1848372445b1229b0b544b84ac4d0edb611774af.tar.gz
Destroy the management device when detaching the driver.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/mly/mly.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/mly/mly.c b/sys/dev/mly/mly.c
index 51a8b39..65f1a5d 100644
--- a/sys/dev/mly/mly.c
+++ b/sys/dev/mly/mly.c
@@ -685,6 +685,9 @@ mly_free(struct mly_softc *sc)
debug_called(1);
+ /* Remove the management device */
+ destroy_dev(sc->mly_dev_t);
+
/* detach from CAM */
mly_cam_detach(sc);
OpenPOWER on IntegriCloud