Skip to content

i3c: fix coverity discovered issues #90686

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

Merged
merged 2 commits into from
May 30, 2025

Conversation

dcpleung
Copy link
Member

  • i3c: rtio: deal with rtio_cqe_consume() returning NULL
  • i3c: set default return for i3c_device_adv_info_get()

@dcpleung
Copy link
Member Author

Twister error is unrelated to this.

dcpleung added 2 commits May 27, 2025 16:33
Coverity flagged that the return variable ret may not be
initialized when returning. So give it a default value.

Fixes zephyrproject-rtos#90509

Signed-off-by: Daniel Leung <[email protected]>
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 <[email protected]>
Copy link

@nashif nashif merged commit 069cd4b into zephyrproject-rtos:main May 30, 2025
26 checks passed
@dcpleung dcpleung deleted the coverity/i3c branch May 30, 2025 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment