Skip to content

Commit

Permalink
drm/i915: Add missing mutex_lock(&dev->struct_mutex)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Pierre Willenbrock authored and Dave Airlie committed Feb 23, 2009
1 parent 6fb8858 commit 5004417
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/gpu/drm/i915/intel_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 5004417

Please sign in to comment.