mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-15 15:15:47 +00: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:
parent
c2416fc6bb
commit
21099537db
1 changed files with 2 additions and 0 deletions
|
@ -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 a new issue