diff options
Diffstat (limited to 'sys/dev/agp/agp.c')
-rw-r--r-- | sys/dev/agp/agp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/agp/agp.c b/sys/dev/agp/agp.c index 4848f01..5bf48a1 100644 --- a/sys/dev/agp/agp.c +++ b/sys/dev/agp/agp.c @@ -271,6 +271,7 @@ agp_generic_detach(device_t dev) struct agp_softc *sc = device_get_softc(dev); bus_release_resource(dev, SYS_RES_MEMORY, AGP_APBASE, sc->as_aperture); lockmgr(&sc->as_lock, LK_DRAIN, 0, curproc); + lockdestroy(&sc->as_lock); destroy_dev(sc->as_devnode); agp_flush_cache(); return 0; |