drm/i915/selftests: Always free spinner on __sseu_prepare error
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 15 Feb 2019 19:50:10 +0000 (19:50 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 16 Feb 2019 11:06:22 +0000 (11:06 +0000)
commit2a4a2754039594c60b58b02b6781428a85f6d745
tree8e867a893fec61270f3118acee38cae2e8988a41
parentd9b308b1f8a1acc0c3279f443d4fe0f9f663252e
drm/i915/selftests: Always free spinner on __sseu_prepare error

Prepare a nice little onion unwind to ensure that we always free the
spinner if we __sseu_prepare fails.

Fixes: c06ee6ff2cbc ("drm/i915/selftests: Context SSEU reconfiguration tests")
Reported-by: Radhakrishna Sripada <radhakrishna.sripada@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Radhakrishna Sripada <radhakrishna.sripada@intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190215195010.16637-1-chris@chris-wilson.co.uk
Reviewed-by: Radhakrishna Sripada <radhakrishna.sripada@intel.com>
drivers/gpu/drm/i915/selftests/i915_gem_context.c