Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kernel: mmu: Fix possible null de-reference #64469

Merged
merged 1 commit into from
Oct 30, 2023
Merged

Conversation

ceolin
Copy link
Member

@ceolin ceolin commented Oct 26, 2023

virt_page_phys_get can be called with phy parameter NULL when the intention is just checking if a virtual address is mapped.

This function is generally overwritten by a an arch API that checks if phys is null before using it but this default implementation doesn't.

virt_page_phys_get can be called with phy parameter NULL when
the intention is just checking if a virtual address is mapped.

This function is generally overwritten by a an arch API that checks if
phys is null before using it but this default implementation doesn't.

Signed-off-by: Flavio Ceolin <[email protected]>
@ycsin
Copy link
Member

ycsin commented Oct 27, 2023

needs a rebase for #64464

@nashif nashif merged commit a36c016 into zephyrproject-rtos:main Oct 30, 2023
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants