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

Merged
merged 1 commit into from
Dec 27, 2024

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
@dkalowsk dkalowsk added this to the v4.0.1 milestone Dec 27, 2024
@dkalowsk dkalowsk merged commit fe8dc82 into v4.0-branch Dec 27, 2024
30 checks passed
@dkalowsk dkalowsk deleted the backport-81778-to-v4.0-branch branch December 27, 2024 19:18
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: Done
Development

Successfully merging this pull request may close these issues.

Flash API: flash_erase has incorrect userspace handler
4 participants