diff options
| author | Carlos López <[email protected]> | 2024-08-01 14:58:52 +0200 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2024-08-02 08:53:22 +0530 |
| commit | 43cace6c3671e5172d0df0a8963e552bb04b7b20 (patch) | |
| tree | e46933243177fd4faa12546056627f25007cbfc3 /docs/platform_guide.md | |
| parent | cb0f4757fc2904cbf579e34feba891a5878625c5 (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 'docs/platform_guide.md')
0 files changed, 0 insertions, 0 deletions
