zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.61k stars 6.5k forks source link

[Coverity CID: 392497] Uninitialized scalar variable in drivers/sensor/st/lps22hh/lps22hh.c #74777

Closed zephyrbot closed 2 months ago

zephyrbot commented 3 months ago

Static code scan issues found in file:

https://github.com/zephyrproject-rtos/zephyr/tree/dcf42917c550714d2457947538b9e29d083e872e/drivers/sensor/st/lps22hh/lps22hh.c

Category: Uninitialized variables Function: lps22hh_sample_fetch Component: Drivers CID: 392497

Details:

https://github.com/zephyrproject-rtos/zephyr/blob/dcf42917c550714d2457947538b9e29d083e872e/drivers/sensor/st/lps22hh/lps22hh.c#L75

Please fix or provide comments in coverity using the link:

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

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

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.

nashif commented 3 months ago

@avisconti can you please take a look?