drm/i915: Fix leak of relocs along do_execbuffer error path
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 31 Jan 2010 10:40:48 +0000 (10:40 +0000)
committerEric Anholt <eric@anholt.net>
Thu, 4 Feb 2010 17:04:01 +0000 (09:04 -0800)
commit93533c291a0af78ca57115fc44d2e6c4c9517cd2
treeb3b0bf319cc00cee85cc005174b6b83f609bdaf7
parent67026e03244d76b8f1fa725b079d4182fe8910aa
drm/i915: Fix leak of relocs along do_execbuffer error path

Following a gpu hang, we would leak the relocation buffer. So simply
earrange the error path to always free the relocation buffer.

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