diff options
author | Dave Airlie <airlied@redhat.com> | 2008-10-07 13:40:36 +1000 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2008-10-18 07:10:52 +1000 |
commit | e7d22bc3cb57126196c4f475d4e55aa44e151784 (patch) | |
tree | 67df52a66ac0e6bae5c836afec1aebb87c6f6f57 /drivers | |
parent | 2bdf00b22154023ac312481583603f4724eb1401 (diff) | |
download | linux-e7d22bc3cb57126196c4f475d4e55aa44e151784.tar.gz linux-e7d22bc3cb57126196c4f475d4e55aa44e151784.tar.bz2 linux-e7d22bc3cb57126196c4f475d4e55aa44e151784.zip |
i915: add missing return in error path.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index 6a89449f31d1..a31ee3202f17 100644 --- a/drivers/gpu/drm/i915/i915_gem.c +++ b/drivers/gpu/drm/i915/i915_gem.c @@ -146,6 +146,7 @@ i915_gem_pread_ioctl(struct drm_device *dev, void *data, if (ret != 0) { drm_gem_object_unreference(obj); mutex_unlock(&dev->struct_mutex); + return ret; } offset = args->offset; |