diff options
author | Dinghao Liu <dinghao.liu@zju.edu.cn> | 2021-03-01 16:04:21 +0800 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2021-03-06 17:15:13 +0000 |
commit | 6dbbbe4cfd398704b72b21c1d4a5d3807e909d60 (patch) | |
tree | b714d7ce7dad96320262d0dd99c848a237114e66 /drivers/iio/imu | |
parent | 141e7633aa4d2838d1f6ad5c74cccc53547c16ac (diff) |
iio: gyro: mpu3050: Fix error handling in mpu3050_trigger_handler
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: 3904b28efb2c7 ("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>
Diffstat (limited to 'drivers/iio/imu')
0 files changed, 0 insertions, 0 deletions