lib: Check region base for merging in sbi_domain_root_add_memregion()
authorAnup Patel <anup.patel@wdc.com>
Thu, 20 May 2021 10:17:07 +0000 (15:47 +0530)
committerAnup Patel <anup@brainfault.org>
Mon, 24 May 2021 10:17:41 +0000 (15:47 +0530)
commitb2dbbc0577e326b6dc1babaa53fb46605c996a72
treefb83473c9f3e931fd1224b40178a251ef315c235
parentfe92347b9f91c147b314065cc3c2c2b196c55b34
lib: Check region base for merging in sbi_domain_root_add_memregion()

We can merge region B onto region A only if base of region A is
aligned to region A order + 1.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
Reviewed-by: Xiang W <wxjstz@126.com>
lib/sbi/sbi_domain.c