aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/i915/i915_gem.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index f565b6afe414..0bec4e6d3369 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -2254,6 +2254,8 @@ i915_gem_object_pin_and_relocate(struct drm_gem_object *obj,
2254 (int) reloc.offset, 2254 (int) reloc.offset,
2255 reloc.read_domains, 2255 reloc.read_domains,
2256 reloc.write_domain); 2256 reloc.write_domain);
2257 drm_gem_object_unreference(target_obj);
2258 i915_gem_object_unpin(obj);
2257 return -EINVAL; 2259 return -EINVAL;
2258 } 2260 }
2259 2261