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

[Backport v3.7-branch] drivers/flash: Correct flash_erase userspace handler #83239

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

zephyrbot
Copy link
Collaborator

@zephyrbot zephyrbot commented Dec 19, 2024

Backport 4864289 from #81778.

Fixes issue where handler has been incorrectly checking for existence of optional callback, assuming that it should always be provided.

Fixes #81777

As the erase callback is optional, handler should not check
if it is not NULL.

Fixes #81777

Signed-off-by: Dominik Ermel <[email protected]>
(cherry picked from commit 4864289)
@zephyrbot zephyrbot added Backport Backport PR and backport failure issues area: Flash size: XS A PR changing only a single line of code labels Dec 19, 2024
@zephyrbot zephyrbot requested a review from de-nordic December 19, 2024 18:57
@de-nordic de-nordic linked an issue Dec 20, 2024 that may be closed by this pull request
@de-nordic de-nordic requested a review from rghaddab December 20, 2024 13:17
@dkalowsk dkalowsk added this to the v3.7.1 milestone Dec 27, 2024
@nashif nashif merged commit 228f140 into v3.7-branch Jan 7, 2025
29 checks passed
@nashif nashif deleted the backport-81778-to-v3.7-branch branch January 7, 2025 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Flash Backport Backport PR and backport failure issues size: XS A PR changing only a single line of code
Projects
Status: To do
Development

Successfully merging this pull request may close these issues.

Flash API: flash_erase has incorrect userspace handler
5 participants