summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorPierre Willenbrock <pierre@pirsoft.de>2009-02-23 01:12:15 +0100
committerDave Airlie <airlied@redhat.com>2009-02-23 01:12:15 +0100
commit5004417d840e6dcb0052061fd04569b9c9f037a8 (patch)
tree2f497cc2401723d5010e86d473ebe2c3bc131f3c /drivers/gpu
parentdrm/i915: fix WC mapping in non-GEM i915 code. (diff)
downloadlinux-5004417d840e6dcb0052061fd04569b9c9f037a8.tar.xz
linux-5004417d840e6dcb0052061fd04569b9c9f037a8.zip
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>
Diffstat (limited to 'drivers/gpu')
-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;
}