Skip to content

Commit

Permalink
drm/i915: Correct locking in the modesetting failure path, fixing a B…
Browse files Browse the repository at this point in the history
…UG_ON.

Signed-off-by: Eric Anholt <eric@anholt.net>
  • Loading branch information
Eric Anholt committed Feb 26, 2010
1 parent c2416fc commit 2109953
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/gpu/drm/i915/i915_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -1405,7 +1405,9 @@ static int i915_load_modeset_init(struct drm_device *dev,
return 0;

destroy_ringbuffer:
mutex_lock(&dev->struct_mutex);
i915_gem_cleanup_ringbuffer(dev);
mutex_unlock(&dev->struct_mutex);
out:
return ret;
}
Expand Down

0 comments on commit 2109953

Please sign in to comment.