lib: sbi: Fixed memory permission check in sbi_dbtr_setup_shmem
authorXiang W <wxjstz@126.com>
Fri, 3 May 2024 13:53:36 +0000 (21:53 +0800)
committerAnup Patel <anup@brainfault.org>
Mon, 13 May 2024 11:09:39 +0000 (16:39 +0530)
commite065c3cd5d31314e50f4dca21f181b6a93fe0d45
tree3612b0398d982af2272f017c466bd64c5a5dd4a2
parent7f54527029d0b6c52dc22dade9e9de37831b1ef0
lib: sbi: Fixed memory permission check in sbi_dbtr_setup_shmem

The previous code detected shmem_phys_hi and shmem_phys_lo as two
addresses. fix this bug

Signed-off-by: Xiang W <wxjstz@126.com>
Reviewed-by: Himanshu Chauhan <hchauhan@ventanamicro.com>
lib/sbi/sbi_dbtr.c