projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7202178
)
drm/i915: fix unpaired i915 device mutex on entervt failure.
author
Wu Fengguang
<fengguang.wu@intel.com>
Sat, 18 Apr 2009 02:43:32 +0000
(10:43 +0800)
committer
Eric Anholt
<eric@anholt.net>
Wed, 22 Apr 2009 00:53:38 +0000
(17:53 -0700)
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/i915_gem.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/i915_gem.c
b/drivers/gpu/drm/i915/i915_gem.c
index 4642115902d61a419ed112b39c5680810cbb6d35..ee896d91c5bc9bba958e43d4bf3e0f8aa53debd5 100644
(file)
--- a/
drivers/gpu/drm/i915/i915_gem.c
+++ b/
drivers/gpu/drm/i915/i915_gem.c
@@
-4087,8
+4087,10
@@
i915_gem_entervt_ioctl(struct drm_device *dev, void *data,
dev_priv->mm.suspended = 0;
ret = i915_gem_init_ringbuffer(dev);
- if (ret != 0)
+ if (ret != 0) {
+ mutex_unlock(&dev->struct_mutex);
return ret;
+ }
spin_lock(&dev_priv->mm.active_list_lock);
BUG_ON(!list_empty(&dev_priv->mm.active_list));