summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Noland <rnoland@2hip.net>2008-06-03 13:02:38 -0400
committerRobert Noland <rnoland@wombat.2hip.net>2008-06-08 01:53:45 -0400
commitec3d9960219e49e1bd24a097e04c3da88e2fcc53 (patch)
treea4dc60646caaf91268e8b61e4e0c9a2d680f84e0
parent93c57ff4e5d9f62be0a353222fef564dd9e59e39 (diff)
[FreeBSD] Forgot to call mtx_destroy on all the locks at unload.
-rw-r--r--bsd-core/drm_drv.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/bsd-core/drm_drv.c b/bsd-core/drm_drv.c
index ece00e18..1616dbb4 100644
--- a/bsd-core/drm_drv.c
+++ b/bsd-core/drm_drv.c
@@ -655,6 +655,9 @@ static void drm_unload(struct drm_device *dev)
drm_mem_uninit();
#if defined(__FreeBSD__) && __FreeBSD_version >= 500000
+ mtx_destroy(&dev->drw_lock);
+ mtx_destroy(&dev->irq_lock);
+ mtx_destroy(&dev->vbl_lock);
mtx_destroy(&dev->dev_lock);
#endif
}