summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2009-02-11 14:26:32 +0000
committerDave Airlie <airlied@redhat.com>2009-02-20 12:21:11 +1000
commit491152b8778d7d290579c989e8607892accde920 (patch)
tree9562c27d4fb0ce5d1417574a835031f365c95482 /drivers/gpu
parent13af10627676879d1b20ee3cdba9a28f0906dd98 (diff)
downloadop-kernel-dev-491152b8778d7d290579c989e8607892accde920.zip
op-kernel-dev-491152b8778d7d290579c989e8607892accde920.tar.gz
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>
Diffstat (limited to 'drivers/gpu')
-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 f565b6a..0bec4e6 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,
(int) reloc.offset,
reloc.read_domains,
reloc.write_domain);
+ drm_gem_object_unreference(target_obj);
+ i915_gem_object_unpin(obj);
return -EINVAL;
}
OpenPOWER on IntegriCloud