diff options
author | Dan Carpenter <dan.carpenter@linaro.org> | 2025-01-08 12:37:22 +0300 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2025-01-12 13:12:48 +0000 |
commit | 20eb1fae4145bc45717aa8a6d05fcd6a64ed856a (patch) | |
tree | 642867b7b467b2408ed8f121a25dc23f7f14262e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ab09c6cfe01b317f515bcd944668697241a54b9d (diff) |
iio: chemical: bme680: Fix uninitialized variable in __bme680_read_raw()
The bme680_read_temp() function takes a pointer to s16 but we're passing
an int pointer to it. This will not work on big endian systems and it
also means that the other 16 bits are uninitialized.
Pass an s16 type variable.
Fixes: f51171ce2236 ("iio: chemical: bme680: Add SCALE and RAW channels")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Acked-by: Vasileios Amoiridis <vassilisamir@gmail.com>
Link: https://patch.msgid.link/4addb68c-853a-49fc-8d40-739e78db5fa1@stanley.mountain
Cc: <stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions