summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikita Shubin <[email protected]>2022-02-11 14:11:53 +0300
committerAnup Patel <[email protected]>2022-02-15 20:58:04 +0530
commit3a69cc1487dc318aadede61c7e580d6fb1109fe8 (patch)
tree9f77e7f2bda74571fef3ff5ffb4499204e402800
parent8e2ef4f7af5affebc8464dd9c4b98501df14e23e (diff)
lib: sbi: fix typo in is_region_subset
Fix typo in is_region_subset, regB_end should be calculated from regB. Signed-off-by: Nikita Shubin <[email protected]> Reviewed-by: Dong Du <[email protected]> Reviewed-by: Xiang W <[email protected]> Reviewed-by: Anup Patel <[email protected]>
-rw-r--r--lib/sbi/sbi_domain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sbi/sbi_domain.c b/lib/sbi/sbi_domain.c
index b60915c3..a1ac1bbc 100644
--- a/lib/sbi/sbi_domain.c
+++ b/lib/sbi/sbi_domain.c
@@ -159,7 +159,7 @@ static bool is_region_subset(const struct sbi_domain_memregion *regA,
ulong regA_start = regA->base;
ulong regA_end = regA->base + (BIT(regA->order) - 1);
ulong regB_start = regB->base;
- ulong regB_end = regB->base + (BIT(regA->order) - 1);
+ ulong regB_end = regB->base + (BIT(regB->order) - 1);
if ((regB_start <= regA_start) &&
(regA_start < regB_end) &&