Free the device lock around the call to drm_drawable_free_all()

This function manipulates a spin lock and we can't hold a mutex over it.

Approved by:	kib
This commit is contained in:
Robert Noland 2008-08-30 00:47:52 +00:00
parent 4c84e72151
commit 4d8fefdaf4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=182467

View file

@ -463,7 +463,9 @@ static int drm_lastclose(struct drm_device *dev)
dev->magiclist[i].head = dev->magiclist[i].tail = NULL;
}
DRM_UNLOCK();
drm_drawable_free_all(dev);
DRM_LOCK();
/* Clear AGP information */
if ( dev->agp ) {