Skip to content

[Coverity CID: 524759] Dereference null return value in drivers/i3c/i3c_rtio.c #90489

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

Closed
zephyrbot opened this issue May 25, 2025 · 0 comments · Fixed by #90686
Closed

[Coverity CID: 524759] Dereference null return value in drivers/i3c/i3c_rtio.c #90489

zephyrbot opened this issue May 25, 2025 · 0 comments · Fixed by #90686
Assignees
Labels
area: I3C bug The issue is a bug, or the PR is fixing a bug Coverity A Coverity detected issue or its fix priority: medium Medium impact/importance bug

Comments

@zephyrbot
Copy link
Collaborator

Static code scan issues found in file:

https://github.com/zephyrproject-rtos/zephyr/tree/265cfb45a818f39cf03c3527b5d1b21027d3cac1/drivers/i3c/i3c_rtio.c

Category: Null pointer dereferences
Function: i3c_rtio_configure
Component: Drivers
CID: 524759

Details:

res = cqe->result;

Please fix or provide comments in coverity using the link:

https://scan9.scan.coverity.com/#/project-view/29271/12996?selectedIssue=524759

For more information about the violation, check the Coverity Reference. (CWE-476)

Note: This issue was created automatically. Priority was set based on classification
of the file affected and the impact field in coverity. Assignees were set using the MAINTAINERS file.

@zephyrbot zephyrbot added bug The issue is a bug, or the PR is fixing a bug priority: medium Medium impact/importance bug Coverity A Coverity detected issue or its fix area: I3C labels May 25, 2025
dcpleung added a commit to dcpleung/zephyr that referenced this issue May 27, 2025
rtio_cqe_consume() may return NULL so we need to check before
using any members of the returned struct.

Fixes zephyrproject-rtos#90473
Fixes zephyrproject-rtos#90489
Fixes zephyrproject-rtos#90497

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
@dcpleung dcpleung linked a pull request May 27, 2025 that will close this issue
dcpleung added a commit to dcpleung/zephyr that referenced this issue May 27, 2025
rtio_cqe_consume() may return NULL so we need to check before
using any members of the returned struct.

Fixes zephyrproject-rtos#90473
Fixes zephyrproject-rtos#90489
Fixes zephyrproject-rtos#90497

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
dcpleung added a commit to dcpleung/zephyr that referenced this issue May 27, 2025
rtio_cqe_consume() may return NULL so we need to check before
using any members of the returned struct.

Fixes zephyrproject-rtos#90473
Fixes zephyrproject-rtos#90489
Fixes zephyrproject-rtos#90497

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
nashif pushed a commit that referenced this issue May 30, 2025
rtio_cqe_consume() may return NULL so we need to check before
using any members of the returned struct.

Fixes #90473
Fixes #90489
Fixes #90497

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
Shreyas-Shankar155 pushed a commit to MihiraMadhava/zephyr that referenced this issue Jun 3, 2025
rtio_cqe_consume() may return NULL so we need to check before
using any members of the returned struct.

Fixes zephyrproject-rtos#90473
Fixes zephyrproject-rtos#90489
Fixes zephyrproject-rtos#90497

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: I3C bug The issue is a bug, or the PR is fixing a bug Coverity A Coverity detected issue or its fix priority: medium Medium impact/importance bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants