summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
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 /drivers/gpu/drm
parent6fb88588555a18792a27f483887fe1f2af5f9c9b (diff)
downloadop-kernel-dev-5004417d840e6dcb0052061fd04569b9c9f037a8.zip
op-kernel-dev-5004417d840e6dcb0052061fd04569b9c9f037a8.tar.gz
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/drm')
-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 4d2baf7..65b635c 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;
}
OpenPOWER on IntegriCloud