[Intel-gfx] [PATCH] drm/i915: Fix possible uninitialized variable in parallel extension

Lucas De Marchi lucas.demarchi at intel.com
Sun Dec 19 08:42:44 UTC 2021


On Sat, Dec 18, 2021 at 04:19:09PM -0800, Matthew Brost wrote:
>'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: e5e32171a2cf ("drm/i915/guc: Connect UAPI to GuC multi-lrc interface")
>Signed-off-by: Matthew Brost <matthew.brost at intel.com>


Reviewed-by: Lucas De Marchi <lucas.demarchi at intel.com>

thanks
Lucas De Marchi


More information about the Intel-gfx mailing list