diff --git a/ArmPkg/Library/StandaloneMmMmuLib/ArmMmuStandaloneMmLib.c b/ArmPkg/Library/StandaloneMmMmuLib/ArmMmuStandaloneMmLib.c index eefed6ddb1..efa4bbdd14 100644 --- a/ArmPkg/Library/StandaloneMmMmuLib/ArmMmuStandaloneMmLib.c +++ b/ArmPkg/Library/StandaloneMmMmuLib/ArmMmuStandaloneMmLib.c @@ -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; }