aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/i915/i915_gem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index db9d36fb5883..a78c97340605 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -3454,7 +3454,7 @@ i915_gem_object_pin_and_relocate(struct drm_gem_object *obj,
3454 if (ret != 0) { 3454 if (ret != 0) {
3455 drm_gem_object_unreference(target_obj); 3455 drm_gem_object_unreference(target_obj);
3456 i915_gem_object_unpin(obj); 3456 i915_gem_object_unpin(obj);
3457 return -EINVAL; 3457 return ret;
3458 } 3458 }
3459 3459
3460 /* Map the page containing the relocation we're going to 3460 /* Map the page containing the relocation we're going to