mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07:00
drm/i915: Correct locking in the modesetting failure path, fixing a BUG_ON.
Signed-off-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
1 parent
c2416fc6bb
commit
21099537db
1 file changed
+2
@@ -1405,7 +1405,9 @@ static int i915_load_modeset_init(struct drm_device *dev,
|
||||
return 0;
|
||||
|
||||
destroy_ringbuffer:
|
||||
mutex_lock(&dev->struct_mutex);
|
||||
i915_gem_cleanup_ringbuffer(dev);
|
||||
mutex_unlock(&dev->struct_mutex);
|
||||
out:
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user