Skip to content

Conversation

@sudarsan-22
Copy link
Contributor

Check if cqe is NULL before accessing cqe->result in spi_rtio_transceive(). Prevents possible null pointer dereference from rtio_cqe_consume() return value.

CID: 516229
Fixes: #90547

Check if cqe is NULL before accessing cqe->result in
spi_rtio_transceive(). Prevents possible null pointer dereference
from rtio_cqe_consume() return value.

CID: 516229
Fixes: zephyrproject-rtos#90547

Signed-off-by: sudarsan N <[email protected]>
@sonarqubecloud
Copy link

sonarqubecloud bot commented Aug 8, 2025

Copy link
Contributor

@JarmouniA JarmouniA left a comment

Choose a reason for hiding this comment

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

* @retval NULL No completion queue event available

@JarmouniA JarmouniA added the Coverity A Coverity detected issue or its fix label Aug 8, 2025
JarmouniA

This comment was marked as off-topic.

@sudarsan-22
Copy link
Contributor Author

Your Signed-off-by is missing complete last name https://docs.zephyrproject.org/latest/contribute/guidelines.html#dco-sign-off

#92992 (comment)

@kartben kartben merged commit 863186a into zephyrproject-rtos:main Aug 18, 2025
31 checks passed
@sudarsan-22 sudarsan-22 deleted the coverity/spi_rtio-fix branch August 20, 2025 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: SPI SPI bus Coverity A Coverity detected issue or its fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Coverity CID: 516229] Dereference null return value in drivers/spi/spi_rtio.c

5 participants