Commit 0d562938 authored by Anup Patel's avatar Anup Patel Committed by Anup Patel
Browse files

lib: sbi: Fix sbi_domain_root_add_memregion() for merging memregions



We should decrement root_memregs_count by one after merging two
memregions otherwise new memregion added after a merge will be
appended after last sentinel memregion of zero order.

Signed-off-by: default avatarAnup Patel <anup.patel@wdc.com>
Reviewed-by: default avatarXiang W <wxjstz@126.com>
parent 49e422c5
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment