projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2416fc
)
drm/i915: Correct locking in the modesetting failure path, fixing a BUG_ON.
author
Eric Anholt
<eric@anholt.net>
Mon, 9 Nov 2009 22:57:34 +0000
(14:57 -0800)
committer
Eric Anholt
<eric@anholt.net>
Fri, 26 Feb 2010 21:23:18 +0000
(13:23 -0800)
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/i915_dma.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/i915_dma.c
b/drivers/gpu/drm/i915/i915_dma.c
index 7bfded5e90bb76416d0a903ddbc226ab3ef71b0a..281faca3e37c9e0376dcca39611991bb7fdffada 100644
(file)
--- a/
drivers/gpu/drm/i915/i915_dma.c
+++ b/
drivers/gpu/drm/i915/i915_dma.c
@@
-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;
}