[FreeBSD] Forgot to call mtx_destroy on all the locks at unload.

This commit is contained in:
Robert Noland 2008-06-03 13:02:38 -04:00 committed by Robert Noland
parent 93c57ff4e5
commit ec3d996021

View file

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