drm/i915: Unref old_obj on get_fence_reg() error path
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 1 Sep 2009 11:02:39 +0000 (12:02 +0100)
committerEric Anholt <eric@anholt.net>
Wed, 2 Sep 2009 17:49:02 +0000 (10:49 -0700)
commit58c2fb647a3cf70a90d7b33a3f2a8396a20a0bc4
tree7c7b029f4af50f1cd61531bc46ed62cfe464857d
parentbcc24fb42585dc9f490cf7789a917358414bdab5
drm/i915: Unref old_obj on get_fence_reg() error path

Remember to release the local reference if we fail to wait on
the rendering.

(Also whilst in the vicinity add some whitespace so that the phasing of
the operations is clearer.)

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/i915_gem.c