From: Daniel J Blueman Date: Mon, 17 May 2010 13:23:52 +0000 (+0100) Subject: i915: fix lock imbalance on error path... X-Git-Tag: v2.6.32.17~134 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=33126b3d34031fa52aa9c0348d57ea7b967b790f;p=karo-tx-linux.git i915: fix lock imbalance on error path... commit f953c9353f5fe6e98fa7f32f51060a74d845b5f8 upstream. 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c index 7f436ec075f6..544923988d13 100644 --- a/drivers/gpu/drm/i915/i915_drv.c +++ b/drivers/gpu/drm/i915/i915_drv.c @@ -192,6 +192,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; }