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:
Robert Noland 2008-08-30 00:53:30 +00:00
parent 4d8fefdaf4
commit ac165058b7

View File

@ -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);