Skip to content

Commit

Permalink
drm/i915: fix unpaired i915 device mutex on entervt failure.
Browse files Browse the repository at this point in the history
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
  • Loading branch information
Wu Fengguang authored and Eric Anholt committed Apr 22, 2009
1 parent 7202178 commit d816f6a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/gpu/drm/i915/i915_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit d816f6a

Please sign in to comment.