summaryrefslogtreecommitdiff
path: root/lib/utils/timer/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:45:10 +0530
commit6a090ee9dc687bb4f39c56a6fd77898257c0f6d7 (patch)
tree03e56cd5b23a90e14e375a6691b38d6ef5d87710 /lib/utils/timer/objects.mk
parent41bb668315331e133fafe90d333a3806a777cf49 (diff)
lib: sbi: check result of pmp_get() in is_pmp_entry_mapped()
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/utils/timer/objects.mk')
0 files changed, 0 insertions, 0 deletions