drm/i915: Cleanup the hws on ringbuffer constrution failure.
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 11 Feb 2009 14:52:44 +0000 (14:52 +0000)
committerDave Airlie <airlied@redhat.com>
Fri, 20 Feb 2009 02:21:12 +0000 (12:21 +1000)
commit85a7bb98582b60b7e9130159d2464eb0bbac13f7
tree74b0e5ec3ea7d6993b2db11b522932c379e185af
parent67eabc0553a32c491fdb392ff2358a0384562050
drm/i915: Cleanup the hws on ringbuffer constrution failure.

If we fail to create the ringbuffer, then we need to cleanup the allocated
hws.

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>
drivers/gpu/drm/i915/i915_gem.c