On 28/08/2025 10:47 am, Nicola Vetrini wrote: > On 2025-08-28 11:39, 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: 72c5fa2208 (device-tree: Move Arm's static-shmem feature to >> common, 2025-06-03) > > The format should be > > Fixes: 72c5fa220804 ("device-tree: Move Arm's static-shmem feature to > common") > > can be fixed on commit probably
It can, but that's the wrong Fixes tag. That commit simply moved the bad logic. Commit 041957bad382 ("xen/arm: Add additional reference to owner domain when the owner is allocated") is the one that introduced the bad expression. ~Andrew