diff options
author | Pierre Willenbrock <pierre@pirsoft.de> | 2009-02-23 03:12:15 +0300 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-02-23 03:12:15 +0300 |
commit | 5004417d840e6dcb0052061fd04569b9c9f037a8 (patch) | |
tree | 2f497cc2401723d5010e86d473ebe2c3bc131f3c /drivers/gpu | |
parent | 6fb88588555a18792a27f483887fe1f2af5f9c9b (diff) | |
download | linux-5004417d840e6dcb0052061fd04569b9c9f037a8.tar.xz |
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.c | 1 |
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; } |