From: Daniel J Blueman Date: Mon, 17 May 2010 13:23:52 +0000 (+0100) Subject: i915: fix lock imbalance on error path... X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f953c9353f5fe6e98fa7f32f51060a74d845b5f8;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git i915: fix lock imbalance on error path... While investigating Intel i5 Arrandale GPU lockups with -rc4, I noticed a lock imbalance. Signed-off-by: Daniel J Blueman Signed-off-by: Eric Anholt --- diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c index d40f62d36453..c072b212979c 100644 --- a/drivers/gpu/drm/i915/i915_drv.c +++ b/drivers/gpu/drm/i915/i915_drv.c @@ -370,6 +370,7 @@ int i965_reset(struct drm_device *dev, u8 flags) } } else { DRM_ERROR("Error occurred. Don't know how to reset this chip.\n"); + mutex_unlock(&dev->struct_mutex); return -ENODEV; }