mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-30 12:00:17 +01:00
drm: fix oops on unload.
if we are unloading the module, there is no master so therefore no lock
This commit is contained in:
parent
52748d1792
commit
5a7f4b3074
1 changed files with 0 additions and 2 deletions
|
|
@ -277,7 +277,6 @@ int i915_driver_unload(struct drm_device *dev)
|
|||
|
||||
I915_WRITE(LP_RING + RING_LEN, 0);
|
||||
|
||||
|
||||
if (drm_core_check_feature(dev, DRIVER_MODESET)) {
|
||||
drm_irq_uninstall(dev);
|
||||
intel_modeset_cleanup(dev);
|
||||
|
|
@ -291,7 +290,6 @@ int i915_driver_unload(struct drm_device *dev)
|
|||
if (dev_priv->sarea_kmap.virtual) {
|
||||
drm_bo_kunmap(&dev_priv->sarea_kmap);
|
||||
dev_priv->sarea_kmap.virtual = NULL;
|
||||
dev->primary->master->lock.hw_lock = NULL;
|
||||
dev->sigdata.lock = NULL;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue