]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Fix possible uninitialized variable in parallel extension
authorMatthew Brost <matthew.brost@intel.com>
Sun, 19 Dec 2021 00:19:09 +0000 (16:19 -0800)
committerJohn Harrison <John.C.Harrison@Intel.com>
Thu, 23 Dec 2021 20:53:06 +0000 (12:53 -0800)
commit2346f66b4cc01a02d28740393e244f2c7c3a9d4e
tree1180338eba271fb8044f9efaae138e9b00a5b22a
parent5bb7138c2dd1e8d5256fb8b78cc3af516e4ef2fc
drm/i915: Fix possible uninitialized variable in parallel extension

'prev_engine' was declared inside the output loop and checked in the
inner after at least 1 pass of either loop. The variable should be
declared outside both loops as it needs to be persistent across the
entire loop structure.

Fixes: 156441007d97 ("drm/i915/guc: Connect UAPI to GuC multi-lrc interface")
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211219001909.24348-1-matthew.brost@intel.com
drivers/gpu/drm/i915/gem/i915_gem_context.c