Hi Krzysztof

On Tue Aug 5, 2025 at 11:41 AM UTC, Krzysztof Karas wrote:
> It is unlikely, but possible for the first call to
> intel_context_create() to fail with -ENOMEM, which would result
> in entering the following code block and decrementing "count",
> when it is set to 0 (initial condition in the for loop).
>
> Protect from overflowing the variable by checking for 0 value
> of "count" before entering the loop.
>
> Signed-off-by: Krzysztof Karas <krzysztof.ka...@intel.com>
> ---

Reviewed-by: Sebastian Brzezinka <sebastian.brzezi...@intel.com>

--
Best regards,
Sebastian

Reply via email to