drm/i915/ringbuffer: Set ring->gem_buffer = NULL on init unwind
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 7 Aug 2010 10:01:34 +0000 (11:01 +0100)
committerEric Anholt <eric@anholt.net>
Mon, 9 Aug 2010 18:24:35 +0000 (11:24 -0700)
commitdd785e35cb3c430c2290d351e67715864f7e5db5
tree45b4b4e1b360e49afe53f171109453b89ee92649
parentdebcaddcbd92387137b87f2c1c640571753915e0
drm/i915/ringbuffer: Set ring->gem_buffer = NULL on init unwind

The cleanup path for early abort failed to nullify the gem_buffer. The
likely consequence of this is zero, since a failure here should mean
aborting the module load.

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