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 v4.0-branch] drivers/flash: Correct flash_erase userspace handler #83240

Open
wants to merge 1 commit into
base: v4.0-branch
Choose a base branch
from

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 <dominik.ermel@nordicsemi.no>
(cherry picked from commit 4864289)
@zephyrbot zephyrbot added Backport Backport PR and backport failure issues size: XS A PR changing only a single line of code area: Flash labels Dec 19, 2024
@de-nordic de-nordic linked an issue Dec 20, 2024 that may be closed by this pull request
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
2 participants