We need to lock around driver unload now.
The i915 driver installs it's register map at load time now. We can't remove the map during unload without holding the lock. Approved by: kib
This commit is contained in:
parent
4d8fefdaf4
commit
ac165058b7
@ -660,8 +660,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…
x
Reference in New Issue
Block a user