From 51a753f9d8aaa59cc43f9f2072272e4aa8253d24 Mon Sep 17 00:00:00 2001 From: Marius Strobl Date: Sun, 10 Jul 2005 10:36:45 +0000 Subject: [PATCH] Add a missing mtx_destroy() in hme_pci_detach(). Reviewed by: yongari Approved by: re (scottl) --- sys/dev/hme/if_hme_pci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/dev/hme/if_hme_pci.c b/sys/dev/hme/if_hme_pci.c index 8d778465088f..ade6e19d631b 100644 --- a/sys/dev/hme/if_hme_pci.c +++ b/sys/dev/hme/if_hme_pci.c @@ -377,6 +377,7 @@ hme_pci_detach(device_t dev) hme_detach(sc); bus_release_resource(dev, SYS_RES_IRQ, hsc->hsc_irid, hsc->hsc_ires); bus_release_resource(dev, SYS_RES_MEMORY, hsc->hsc_srid, hsc->hsc_sres); + mtx_destroy(&sc->sc_lock); return (0); }