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

drivers: sensor: coverity fixes #38150

Merged
merged 2 commits into from
Aug 30, 2021

Conversation

gmarull
Copy link
Member

@gmarull gmarull commented Aug 30, 2021

Fixes #38117
Fixes #38132

Error handling was missing in numerous places, mostly for GPIO related
callbacks. An assertion has been used in the context of thread callback.

Fixes zephyrproject-rtos#38132

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
Error handling was missing in numerous places, mostly on GPIO related
callbacks. Some error codes were not correct (-EINVAL vs -ENODEV) and in
some cases error was not propagated correctly.

Fixes zephyrproject-rtos#38117

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
@gmarull gmarull added the bug The issue is a bug, or the PR is fixing a bug label Aug 30, 2021
@gmarull gmarull added this to the v2.7.0 milestone Aug 30, 2021
Copy link
Member

@MaureenHelm MaureenHelm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @gmarull !

@nashif nashif merged commit 5f9fddd into zephyrproject-rtos:main Aug 30, 2021
@gmarull gmarull deleted the fix-sensors-coverity branch January 18, 2022 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug, or the PR is fixing a bug
Projects
None yet
4 participants