From: Nikita Shubin Date: Fri, 11 Feb 2022 11:11:53 +0000 (+0300) Subject: lib: sbi: fix typo in is_region_subset X-Git-Tag: v1.3~363 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3a69cc1487dc318aadede61c7e580d6fb1109fe8;p=platform%2Fkernel%2Fopensbi-spacemit.git 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 Reviewed-by: Dong Du Reviewed-by: Xiang W Reviewed-by: Anup Patel --- diff --git a/lib/sbi/sbi_domain.c b/lib/sbi/sbi_domain.c index b60915c..a1ac1bb 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) &&