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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

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 <daniel.leung@intel.com>
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>
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment