kernel_samsung_a53x/drivers/iio/chemical
Vasileios Amoiridis 7fa3c3abe4 iio: chemical: bme680: Fix overflows in compensate() functions
commit fdd478c3ae98c3f13628e110dce9b6cfb0d9b3c8 upstream.

There are cases in the compensate functions of the driver that
there could be overflows of variables due to bit shifting ops.
These implications were initially discussed here [1] and they
were mentioned in log message of Commit 1b3bd8592780 ("iio:
chemical: Add support for Bosch BME680 sensor").

[1]: https://lore.kernel.org/linux-iio/20180728114028.3c1bbe81@archlinux/

Fixes: 1b3bd8592780 ("iio: chemical: Add support for Bosch BME680 sensor")
Signed-off-by: Vasileios Amoiridis <vassilisamir@gmail.com>
Link: https://lore.kernel.org/r/20240606212313.207550-4-vassilisamir@gmail.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-19 14:19:33 +01:00
..
ams-iaq-core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
atlas-ezo-sensor.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
atlas-sensor.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bme680.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bme680_core.c iio: chemical: bme680: Fix overflows in compensate() functions 2024-11-19 14:19:33 +01:00
bme680_i2c.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bme680_spi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ccs811.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pms7003.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
scd30.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
scd30_core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
scd30_i2c.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
scd30_serial.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sgp30.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sps30.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vz89x.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00