summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Willenbrock <pierre@pirsoft.de>2009-02-23 10:12:15 +1000
committerDave Airlie <airlied@redhat.com>2009-02-23 10:12:15 +1000
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,
temp = CURSOR_MODE_DISABLE;
addr = 0;
bo = NULL;
+ mutex_lock(&dev->struct_mutex);
goto finish;
}