forked from Minki/linux
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:
parent
c2416fc6bb
commit
21099537db
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user