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

Avoid assertion violation in case of kmm_free(NULL) #6928

Merged
merged 1 commit into from
Aug 26, 2022

Conversation

michi-jung
Copy link
Contributor

@michi-jung michi-jung commented Aug 26, 2022

Summary

It is ok to call kmm_free with a NULL pointer. Thus adopt the
DEBUGASSERT statement to cover this case.

Impact

None

Testing

Tested on Nucleo-144 STM32U585 board.

It is ok to call kmm_free with a NULL pointer.  Thus adopt the
DEBUGASSERT statement to cover this case.

Signed-off-by: Michael Jung <michael.jung@secore.ly>
@michi-jung michi-jung changed the title tmpfs: Avoid potential kmm_free(NULL) Avoid assertion violation in case of kmm_free(NULL) Aug 26, 2022
@xiaoxiang781216 xiaoxiang781216 merged commit 1ad0669 into apache:master Aug 26, 2022
@michi-jung michi-jung deleted the tmpfs-fix branch August 26, 2022 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants