aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2009-02-11 09:26:32 -0500
committerDave Airlie <airlied@redhat.com>2009-02-19 21:21:11 -0500
commit491152b8778d7d290579c989e8607892accde920 (patch)
tree9562c27d4fb0ce5d1417574a835031f365c95482
parent13af10627676879d1b20ee3cdba9a28f0906dd98 (diff)
drm/i915: unpin for an invalid memory domain.
A missing unreference and unpin after rejecting the relocation for an invalid memory domain. 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.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