summaryrefslogtreecommitdiff
path: root/lib/sbi/objects.mk
diff options
context:
space:
mode:
authorCarlos López <[email protected]>2024-08-01 14:58:52 +0200
committerAnup Patel <[email protected]>2024-08-02 08:53:22 +0530
commit43cace6c3671e5172d0df0a8963e552bb04b7b20 (patch)
treee46933243177fd4faa12546056627f25007cbfc3 /lib/sbi/objects.mk
parentcb0f4757fc2904cbf579e34feba891a5878625c5 (diff)
lib: sbi: check result of pmp_get() in is_pmp_entry_mapped()v1.5.1release-1.5.x
pmp_get() may return an error if the given entry, given by the caller of is_pmp_entry_mapped(), is invalid. This results in the output parameters for pmp_get() being uninitialized. To avoid using garbage values, check the result and return early if necessary. This issue is not being hit because at the moment is_pmp_entry_mapped() is only being called from a single site with a valid hardcoded value. Signed-off-by: Carlos López <[email protected]> Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'lib/sbi/objects.mk')
0 files changed, 0 insertions, 0 deletions