Skip to content
Commit 7807a76b authored by Chris Wilson's avatar Chris Wilson
Browse files

drm/i915/gt: Take responsibility for engine->release as the last step



In order to avoid a double cleanup on error, take ownership of
engine->release past the point of no [error] return.

Reported-by: default avatarMika Kuoppala <mika.kuoppala@linux.intel.com>
Fixes: e26b6d43

 ("drm/i915/gt: Pull GT initialisation under intel_gt_init()")
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Tested-by: default avatarMika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: default avatarMika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200107143118.3288995-1-chris@chris-wilson.co.uk
parent 05a8e451
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment