Commit 21099537 authored by Eric Anholt's avatar Eric Anholt

drm/i915: Correct locking in the modesetting failure path, fixing a BUG_ON.

Signed-off-by: default avatarEric Anholt <eric@anholt.net>
parent c2416fc6
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment