diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2009-02-11 17:26:32 +0300 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-02-20 05:21:11 +0300 |
commit | 491152b8778d7d290579c989e8607892accde920 (patch) | |
tree | 9562c27d4fb0ce5d1417574a835031f365c95482 /drivers/gpu | |
parent | 13af10627676879d1b20ee3cdba9a28f0906dd98 (diff) | |
download | linux-491152b8778d7d290579c989e8607892accde920.tar.xz |
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.c | 2 |
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, (int) reloc.offset, reloc.read_domains, reloc.write_domain); + drm_gem_object_unreference(target_obj); + i915_gem_object_unpin(obj); return -EINVAL; } |