linux_dsm_epyc7002/drivers/iio/gyro
Dinghao Liu f8bfbd3917 iio: gyro: mpu3050: Fix error handling in mpu3050_trigger_handler
commit 6dbbbe4cfd398704b72b21c1d4a5d3807e909d60 upstream.

There is one regmap_bulk_read() call in mpu3050_trigger_handler
that we have caught its return value bug lack further handling.
Check and terminate the execution flow just like the other three
regmap_bulk_read() calls in this function.

Fixes: 3904b28efb ("iio: gyro: Add driver for the MPU-3050 gyroscope")
Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20210301080421.13436-1-dinghao.liu@zju.edu.cn
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-03-25 09:04:15 +01:00
..
adis16080.c
adis16130.c
adis16136.c
adis16260.c
adxrs290.c
adxrs450.c
bmg160_core.c
bmg160_i2c.c
bmg160_spi.c
bmg160.h
fxas21002c_core.c
fxas21002c_i2c.c
fxas21002c_spi.c
fxas21002c.h
hid-sensor-gyro-3d.c
itg3200_buffer.c
itg3200_core.c
Kconfig
Makefile
mpu3050-core.c
mpu3050-i2c.c
mpu3050.h
ssp_gyro_sensor.c
st_gyro_buffer.c
st_gyro_core.c
st_gyro_i2c.c
st_gyro_spi.c
st_gyro.h