summaryrefslogtreecommitdiff
path: root/tools/iio
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2022-10-14 12:39:52 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2022-11-01 08:48:13 +0000
commitdd4753f88f242f46d0d8726f5936f64e754a47f2 (patch)
treed459683cdeb07fb4fb9a0035ad4893b2f3eb4ac1 /tools/iio
parent65f20301607d07ee279b0804d11a05a62a6c1a1c (diff)
iio: imu: bno055: uninitialized variable bug in bno055_trigger_handler()
This bug is basically harmless, although it will trigger a runtime warning if you use KMSan. On the first iteration through the loop, the "best_delta" variable is uninitialized so re-order the condition to prevent reading uninitialized memory. Fixes: 4aefe1c2bd0c ("iio: imu: add Bosch Sensortec BNO055 core driver") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Nuno Sá <nuno.sa@analog.com> Link: https://lore.kernel.org/r/Y0kuaO9PQkSQja+A@kili Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/iio')
0 files changed, 0 insertions, 0 deletions