mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-27 14:00:15 +01:00
[FreeBSD] Fix a couple of locking problems.
This commit is contained in:
parent
f8a14b1f95
commit
c7f7b6d7e2
1 changed files with 6 additions and 1 deletions
|
|
@ -460,7 +460,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 ) {
|
||||
|
|
@ -655,8 +657,11 @@ static void drm_unload(struct drm_device *dev)
|
|||
dev->agp = NULL;
|
||||
}
|
||||
|
||||
if (dev->driver.unload != NULL)
|
||||
if (dev->driver.unload != NULL) {
|
||||
DRM_LOCK();
|
||||
dev->driver.unload(dev);
|
||||
DRM_UNLOCK();
|
||||
}
|
||||
|
||||
delete_unrhdr(dev->drw_unrhdr);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue