aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Willenbrock <pierre@pirsoft.de>2009-02-22 19:12:15 -0500
committerDave Airlie <airlied@redhat.com>2009-02-22 19:12:15 -0500
commit5004417d840e6dcb0052061fd04569b9c9f037a8 (patch)
tree2f497cc2401723d5010e86d473ebe2c3bc131f3c
parent6fb88588555a18792a27f483887fe1f2af5f9c9b (diff)
drm/i915: Add missing mutex_lock(&dev->struct_mutex)
there might be a nicer way to fix this but this is the simplest for now. Signed-off-by: Pierre Willenbrock <pierre@pirsoft.de> Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r--drivers/gpu/drm/i915/intel_display.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 4d2baf7b00be..65b635ce28c8 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -1008,6 +1008,7 @@ static int intel_crtc_cursor_set(struct drm_crtc *crtc,
1008 temp = CURSOR_MODE_DISABLE; 1008 temp = CURSOR_MODE_DISABLE;
1009 addr = 0; 1009 addr = 0;
1010 bo = NULL; 1010 bo = NULL;
1011 mutex_lock(&dev->struct_mutex);
1011 goto finish; 1012 goto finish;
1012 } 1013 }
1013 1014