diff options
author | vehemens <vehemens@verizon.net> | 2008-08-13 17:17:05 -0400 |
---|---|---|
committer | Robert Noland <rnoland@2hip.net> | 2008-08-24 15:25:19 -0400 |
commit | e6010778a8edf96dbfb4bc1f7cf0ce5706eee733 (patch) | |
tree | aa03aaeef8581a327f020a274fd10236fca147bd /bsd-core | |
parent | 16c1a87580af89be02e7e6c1898f18b36829e007 (diff) |
[FreeBSD] Fix lock leak.
Signed-off-by: Robert Noland <rnoland@2hip.net>
Diffstat (limited to 'bsd-core')
-rw-r--r-- | bsd-core/drm_drv.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bsd-core/drm_drv.c b/bsd-core/drm_drv.c index 771e5554..d369af4c 100644 --- a/bsd-core/drm_drv.c +++ b/bsd-core/drm_drv.c @@ -600,9 +600,10 @@ error: #ifdef __FreeBSD__ destroy_dev(dev->devnode); #if __FreeBSD_version >= 500000 + mtx_destroy(&dev->tsk_lock); mtx_destroy(&dev->drw_lock); - mtx_destroy(&dev->irq_lock); mtx_destroy(&dev->vbl_lock); + mtx_destroy(&dev->irq_lock); mtx_destroy(&dev->dev_lock); #endif #endif @@ -663,9 +664,10 @@ static void drm_unload(struct drm_device *dev) DRM_ERROR("Request to disable bus-master failed.\n"); #if defined(__FreeBSD__) && __FreeBSD_version >= 500000 + mtx_destroy(&dev->tsk_lock); mtx_destroy(&dev->drw_lock); - mtx_destroy(&dev->irq_lock); mtx_destroy(&dev->vbl_lock); + mtx_destroy(&dev->irq_lock); mtx_destroy(&dev->dev_lock); #endif } |