mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-16 21:34:10 +00:00
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:
parent
4c84e72151
commit
4d8fefdaf4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=182467
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in a new issue