On 01/09/2025 11:26, Dmytro Prokopchuk1 wrote:
> Fix an issue in the 'fail:' cleanup path of the 'assign_shared_memory()'
> function where the use of an unsigned long 'i' with the condition
> '--i >= 0' caused an infinite loop. Update the loop to use 'i--',
> ensuring correct loop termination.
>
> This change adheres to MISRA C Rule 14.3: "Controlling expressions shall
> not be invariant."
>
> Fixes: 041957bad382 ("xen/arm: Add additional reference to owner domain when
> the owner is allocated")
> Signed-off-by: Dmytro Prokopchuk <[email protected]>
Acked-by: Michal Orzel <[email protected]>
~Michal