-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Closed
Copy link
Labels
CoverityA Coverity detected issue or its fixA Coverity detected issue or its fixbugThe issue is a bug, or the PR is fixing a bugThe issue is a bug, or the PR is fixing a bugpriority: lowLow impact/importance bugLow impact/importance bug
Description
Static code scan issues found in file:
Category: Incorrect expression
Function: lmp90xxx_read_reg8
Component: Drivers
CID: 236130
Details:
zephyr/drivers/adc/adc_lmp90xxx.c
Line 250 in 374629a
| return lmp90xxx_read_reg(dev, addr, val, sizeof(val)); |
244 return err;
245 }
246
247 static int lmp90xxx_read_reg8(const struct device *dev, uint8_t addr,
248 uint8_t *val)
249 {
>>> CID 236130: Incorrect expression (SIZEOF_MISMATCH)
>>> Passing argument "val" of type "uint8_t *" and argument "4U /* sizeof (val) */" to function "lmp90xxx_read_reg" is suspicious.
250 return lmp90xxx_read_reg(dev, addr, val, sizeof(val));
251 }
252
253 static int lmp90xxx_write_reg(const struct device *dev, uint8_t addr,
254 uint8_t *dptr,
255 size_t len)
Please fix or provide comments in coverity using the link:
https://scan9.coverity.com/reports.htm#v29271/p12996
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 CODEOWNERS file.
Metadata
Metadata
Assignees
Labels
CoverityA Coverity detected issue or its fixA Coverity detected issue or its fixbugThe issue is a bug, or the PR is fixing a bugThe issue is a bug, or the PR is fixing a bugpriority: lowLow impact/importance bugLow impact/importance bug