]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/execlists: Avoid putting the error pointer
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 11 Jun 2018 15:33:32 +0000 (16:33 +0100)
committerJani Nikula <jani.nikula@intel.com>
Tue, 19 Jun 2018 12:47:44 +0000 (15:47 +0300)
commite8fdd6c3f7f221fd1bddf2d0bc13769e620211c5
tree4166648e51d7b099ced8016b3ea3cfde23be5914
parentebe6296a126200f6664cd5b5c5d69cf719363a80
drm/i915/execlists: Avoid putting the error pointer

On allocation error, do not jump to the unwind handler that tries to
free the error pointer.

Reported-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 5c14973857cd ("drm/i915: Split i915_gem_timeline into individual timelines")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180611153332.14824-1-chris@chris-wilson.co.uk
(cherry picked from commit 467d35789e5a4f47428b65ef711b30fdabbb0fd4)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/intel_lrc.c