All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch] i915: missing unlock on error path
@ 2010-05-07  8:37 Dan Carpenter
  2010-05-07  8:43 ` Jiri Slaby
  2010-05-26 21:18 ` Eric Anholt
  0 siblings, 2 replies; 3+ messages in thread
From: Dan Carpenter @ 2010-05-07  8:37 UTC (permalink / raw)
  To: David Airlie; +Cc: Kristian Høgsberg, jirislaby, Jesse Barnes, dri-devel

There was a missing mutex_unlock(&dev->struct_mutex) on this error path.

Signed-off-by: Dan Carpenter <error27@gmail.com>
---
I thought Jiri sent this patch earlier but a google search for "stanse
struct_mutex i965_reset" didn't find any patches, so I'm resending.

diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c
index 01e91ea..a605c87 100644
--- a/drivers/gpu/drm/i915/i915_drv.c
+++ b/drivers/gpu/drm/i915/i915_drv.c
@@ -369,6 +369,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;
 	}
 

------------------------------------------------------------------------------

--

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-05-26 21:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-07  8:37 [patch] i915: missing unlock on error path Dan Carpenter
2010-05-07  8:43 ` Jiri Slaby
2010-05-26 21:18 ` Eric Anholt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.