Add a missing mtx_destroy() in hme_pci_detach().

Reviewed by:	yongari
Approved by:	re (scottl)
This commit is contained in:
Marius Strobl 2005-07-10 10:36:45 +00:00
parent 82c59ca76e
commit 51a753f9d8

View File

@ -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);
}