]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Prevent dereference of engine before NULL check in error capture
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 21 Jun 2019 13:52:46 +0000 (14:52 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 21 Jun 2019 14:38:54 +0000 (15:38 +0100)
commit8774ec23a16f451c84c5e096e65780d26d135b74
treeac1641b866626962711094383a70caf2ba0b8786
parentc9d7bf9b9105befd86534c597537318627dd8c3e
drm/i915: Prevent dereference of engine before NULL check in error capture

smatch caught,
drivers/gpu/drm/i915/i915_gpu_error.c:1418 gem_record_rings() warn: variable dereferenced before check 'engine' (see line 1413)

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190621135246.20683-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gpu_error.c