drm/i915: Onion unwind for intel_init_ring_common()
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 3 Apr 2017 11:34:26 +0000 (12:34 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 3 Apr 2017 12:53:14 +0000 (13:53 +0100)
commit1a5788bf2729c6e98444c7f56f960957694472c2
tree9f20cb72e891fc6397e4d5a23df2bea927acaa33
parentd822bb18ce96391245d877d5bada8913b88a15cf
drm/i915: Onion unwind for intel_init_ring_common()

Rather than call intel_engine_cleanup() with a partially constructed
engine, unwind the error during intel_init_ring_common().

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170403113426.25707-2-chris@chris-wilson.co.uk
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/intel_ringbuffer.c