drm/i915: release struct_mutex on the i915_gem_init_hw fail path
authorJani Nikula <jani.nikula@intel.com>
Fri, 5 Dec 2014 12:17:42 +0000 (14:17 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 5 Dec 2014 14:03:44 +0000 (15:03 +0100)
commit7bcc3777b12a05687e5080e4de3c108f35d6aec8
tree7b806b2a67376a6c7b51d97b4315008f1aec6278
parent8f4d2683b02ad8059bf1861acef64c022b9d5ce6
drm/i915: release struct_mutex on the i915_gem_init_hw fail path

Release struct_mutex if init_rings() fails.

This is a regression introduced in
commit 35a57ffbb10840af219eeaf64718434242bb7c76
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Thu Nov 20 00:33:07 2014 +0100

    drm/i915: Only init engines once

Reported-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c