mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
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:
parent
0923de81ab
commit
33cd70de1d
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue