提交 21099537 编写于 作者: E Eric Anholt

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

Signed-off-by: NEric Anholt <eric@anholt.net>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册