From e7d22bc3cb57126196c4f475d4e55aa44e151784 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Tue, 7 Oct 2008 13:40:36 +1000 Subject: [PATCH] i915: add missing return in error path. Signed-off-by: Dave Airlie --- drivers/gpu/drm/i915/i915_gem.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index 6a89449f31d..a31ee3202f1 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; -- 2.41.1