android_kernel_motorola_sm6375/drivers/iio
Repository files (latest commit first)
Filename Latest commit message Latest commit date
zhili.liu 7200170e88 iio: magnetometer: rm3100: add boundary check for the value read from RM3100_REG_TMRC
commit 792595bab4925aa06532a14dd256db523eb4fa5e upstream.

Recently, we encounter kernel crash in function rm3100_common_probe
caused by out of bound access of array rm3100_samp_rates (because of
underlying hardware failures). Add boundary check to prevent out of
bound access.

Fixes: 121354b2ec ("iio: magnetometer: Add driver support for PNI RM3100")
Suggested-by: Zhouyi Zhou <zhouzhouyi@gmail.com>
Signed-off-by: zhili.liu <zhili.liu@ucas.com.cn>
Link: https://lore.kernel.org/r/1704157631-3814-1-git-send-email-zhouzhouyi@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-02-23 08:25:11 +01:00
..
accel
adc iio: adc: ti_am335x_adc: Fix return value check of tiadc_request_dma() 2024-01-08 11:29:46 +01:00
addac iio: addac: stx104: Fix race condition when converting analog-to-digital 2023-08-30 16:27:12 +02:00
afe
amplifiers
buffer
chemical
common iio: common: ms_sensors: ms_sensors_i2c: fix humidity conversion time table 2024-01-08 11:29:46 +01:00
dac iio: dac: build ad5758 driver when AD5758 is selected 2023-06-09 10:29:00 +02:00
dummy
frequency
gyro
health
humidity
imu iio: imu: inv_mpu6050: fix an error code problem in inv_mpu6050_read_raw 2024-01-08 11:29:45 +01:00
light
magnetometer iio: magnetometer: rm3100: add boundary check for the value read from RM3100_REG_TMRC 2024-02-23 08:25:11 +01:00
multiplexer
orientation
potentiometer
potentiostat
pressure iio: pressure: ms5611: ms5611_prom_is_valid false negative bug 2023-10-25 11:53:19 +02:00
proximity
resolver
temperature
trigger
iio_core.h
iio_core_trigger.h
industrialio-buffer.c
industrialio-configfs.c
industrialio-core.c
industrialio-event.c
industrialio-sw-device.c
industrialio-sw-trigger.c
industrialio-trigger.c
industrialio-triggered-event.c
inkern.c
Kconfig iio: add addac subdirectory 2023-08-30 16:27:11 +02:00
Makefile iio: add addac subdirectory 2023-08-30 16:27:11 +02:00