RE: [PATCH] iio: imu: bno055: uninitialized variable bug in bno055_trigger_handler()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




> -----Original Message-----
> From: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
> Sent: Friday, October 14, 2022 11:40 AM
> To: Jonathan Cameron <jic23@xxxxxxxxxx>; Andrea Merello
> <andrea.merello@xxxxxx>
> Cc: Lars-Peter Clausen <lars@xxxxxxxxxx>; linux-iio@xxxxxxxxxxxxxxx;
> kernel-janitors@xxxxxxxxxxxxxxx
> Subject: [PATCH] iio: imu: bno055: uninitialized variable bug in
> bno055_trigger_handler()
> 
> [External]
> 
> 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@xxxxxxxxxx>
> ---

Acked-by: Nuno Sá <nuno.sa@xxxxxxxxxx>




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux