linux/drivers/iio/imu
Tom Rix f71e41e23e iio:imu:st_lsm6dsx: check st_lsm6dsx_shub_read_output return
Potential error return is not checked.  This can lead to use
of undefined data.

Detected by clang static analysis.

st_lsm6dsx_shub.c:540:8: warning: Assigned value is garbage or undefined
        *val = (s16)le16_to_cpu(*((__le16 *)data));
             ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Fixes: c91c1c844e ("iio: imu: st_lsm6dsx: add i2c embedded controller support")
Signed-off-by: Tom Rix <trix@redhat.com
Cc: <Stable@vger.kernel.org>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20200809175551.6794-1-trix@redhat.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2020-09-21 20:01:50 +01:00
..
bmi160 iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
inv_icm42600 iio: imu: inv_icm42600: add accurate timestamping 2020-06-27 14:24:42 +01:00
inv_mpu6050 iio: imu: inv_mpu6050: Simplify with dev_err_probe() 2020-09-03 19:40:50 +01:00
st_lsm6dsx iio:imu:st_lsm6dsx: check st_lsm6dsx_shub_read_output return 2020-09-21 20:01:50 +01:00
adis16400.c iio: adis16400: Drop adis_burst usage 2020-09-21 20:01:45 +01:00
adis16460.c iio: adis16460: Use Managed device functions 2020-09-16 19:06:09 +01:00
adis16475.c iio: adis16475: Drop adis_burst usage 2020-09-21 20:01:45 +01:00
adis16480.c iio: adis16480: Use Managed device functions 2020-09-16 19:06:09 +01:00
adis_buffer.c iio: adis: Move burst mode into adis_data 2020-09-21 20:01:45 +01:00
adis_trigger.c iio: adis: Drop non Managed device functions 2020-09-16 19:06:10 +01:00
adis.c iio: adis: Add adis_update_bits() APIs 2020-04-25 16:10:44 +01:00
fxos8700_core.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
fxos8700_i2c.c iio: imu: Add support for the FXOS8700 IMU 2019-10-22 10:24:50 +01:00
fxos8700_spi.c iio: imu: Add support for the FXOS8700 IMU 2019-10-22 10:24:50 +01:00
fxos8700.h iio: imu: Add support for the FXOS8700 IMU 2019-10-22 10:24:50 +01:00
Kconfig iio: imu: add Kconfig and Makefile for inv_icm42600 driver 2020-06-27 14:20:25 +01:00
kmx61.c iio: imu: kmx61: Fix formatting in kerneldoc function headers 2020-07-20 09:03:09 +01:00
Makefile iio: imu: add Kconfig and Makefile for inv_icm42600 driver 2020-06-27 14:20:25 +01:00