]> asedeno.scripts.mit.edu Git - linux.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)
commit5f6730a4689269240e911853403456e243513ae0
treeac1641b866626962711094383a70caf2ba0b8786
parentdb56f974941b75b2c96e577100e7abe64b03d9b9
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