ArmPkg/StandaloneMmMmuLib: fix reverse condition of ASSERT

In GetMemoryPermissions(), PageCount from FFA_MEM_PERM_GET couldn't
be over EFI_SIZE_TO_PAGES(Length) otherwise that's bug of SPMC.
But, current ASSERT() checks PageCount > EFI_SIZE_TO_PAGES(Length)
which is reverse condition for validation.

Signed-off-by: Yeoreum Yun <yeoreum.yun@arm.com>
This commit is contained in:
Yeoreum Yun 2026-05-15 09:10:06 +01:00 committed by mergify[bot]
parent 0923de81ab
commit 33cd70de1d

View file

@ -222,7 +222,7 @@ GetMemoryPermissions (
* 2.8 FFA_MEM_PERM_GET
*/
*PageCount = SvcArgs.Arg3 + 1;
ASSERT (*PageCount > EFI_SIZE_TO_PAGES (Length));
ASSERT (*PageCount <= EFI_SIZE_TO_PAGES (Length));
} else {
*PageCount = 1;
}