diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2009-02-08 20:07:51 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-02-20 03:21:09 +0100 |
commit | d6873102fd36c577f88174d8bd50f1d51645fc51 (patch) | |
tree | 5c955f350b99aa0442bcd431c56ce750d94ad7ed | |
parent | drm/i915: Cleanup trivial leak on execbuffer error path. (diff) | |
download | linux-d6873102fd36c577f88174d8bd50f1d51645fc51.tar.xz linux-d6873102fd36c577f88174d8bd50f1d51645fc51.zip |
drm/i915: hold mutex for unreference() in i915_gem_tiling.c
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Dave Airlie <airlied@linux.ie>
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem_tiling.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem_tiling.c b/drivers/gpu/drm/i915/i915_gem_tiling.c index fa1685cba840..7fb4191ef934 100644 --- a/drivers/gpu/drm/i915/i915_gem_tiling.c +++ b/drivers/gpu/drm/i915/i915_gem_tiling.c @@ -299,9 +299,8 @@ i915_gem_set_tiling(struct drm_device *dev, void *data, } obj_priv->stride = args->stride; - mutex_unlock(&dev->struct_mutex); - drm_gem_object_unreference(obj); + mutex_unlock(&dev->struct_mutex); return 0; } @@ -340,9 +339,8 @@ i915_gem_get_tiling(struct drm_device *dev, void *data, DRM_ERROR("unknown tiling mode\n"); } - mutex_unlock(&dev->struct_mutex); - drm_gem_object_unreference(obj); + mutex_unlock(&dev->struct_mutex); return 0; } |