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:
rnoland 2008-08-30 00:47:52 +00:00
parent 15b99cdb14
commit 32bdd34dda

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 ) {