drm/i915/selftests: Reorder error cleanup for whitelist checking
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 8 Jul 2019 15:23:21 +0000 (16:23 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 8 Jul 2019 16:33:28 +0000 (17:33 +0100)
commitcf3bd1a0f53eae790a83af445c7795b4ce2e1a9b
treea6867eefad957c7254cde41905ccdb13a9a2f502
parent77adbd8fbf3a10e149a76abee6384a4968ed318e
drm/i915/selftests: Reorder error cleanup for whitelist checking

Reorder the error paths so that we unwind all the locals from any error
path and so avoid setting off divers alarum in case we find an error in
case we find an error.

References: https://bugs.freedesktop.org/show_bug.cgi?id=111048
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190708152321.22187-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/selftest_workarounds.c