]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit78570c5fb20e8f65e0f26ae0abda275c8cb49508
tree7b806b2a67376a6c7b51d97b4315008f1aec6278
parent4902dc49f2f20ce73fc94fbf396acedbc5343a83
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 842e694c8fbe4d0a79cd30dfe60db5f7b3d8f767
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