linux/drivers/iio
Alexandru Ardelean 5efb3f9140 iio: dac: ad5592r: fix unbalanced mutex unlocks in ad5592r_read_raw()
commit 65afb0932a upstream.

There are 2 exit paths where the lock isn't held, but try to unlock the
mutex when exiting. In these places we should just return from the
function.

A neater approach would be to cleanup the ad5592r_read_raw(), but that
would make this patch more difficult to backport to stable versions.

Fixes 56ca9db862bf3: ("iio: dac: Add support for the AD5592R/AD5593R ADCs/DACs")
Reported-by: Charles Stanhope <charles.stanhope@gmail.com>
Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-08-21 13:05:24 +02:00
..
accel iio: mma8452: Add missed iio_device_unregister() call in mma8452_probe() 2020-07-22 09:32:54 +02:00
adc iio: adc: ad7780: Fix a resource handling path in 'ad7780_probe()' 2020-07-22 09:33:02 +02:00
afe
amplifiers
buffer
chemical iio:chemical:pms7003: Fix timestamp alignment and prevent data leak. 2020-06-10 20:24:56 +02:00
common
dac iio: dac: ad5592r: fix unbalanced mutex unlocks in ad5592r_read_raw() 2020-08-21 13:05:24 +02:00
dummy
frequency
gyro
health iio:health:afe4404 Fix timestamp alignment and prevent data leak. 2020-07-22 09:33:00 +02:00
humidity iio:humidity:hts221 Fix alignment and data leak issues 2020-07-22 09:32:54 +02:00
imu
light iio: vcnl4000: Fix i2c swapped word reading. 2020-06-10 20:24:56 +02:00
magnetometer iio: magnetometer: ak8974: Fix runtime PM imbalance on error 2020-07-22 09:32:54 +02:00
multiplexer
orientation
potentiometer
potentiostat
pressure iio:pressure:ms5611 Fix buffer element alignment 2020-07-22 09:32:54 +02:00
proximity
resolver
temperature
trigger
Kconfig
Makefile
iio_core.h
iio_core_trigger.h
industrialio-buffer.c
industrialio-configfs.c
industrialio-core.c iio: core: add missing IIO_MOD_H2/ETHANOL string identifiers 2020-07-22 09:32:54 +02:00
industrialio-event.c
industrialio-sw-device.c
industrialio-sw-trigger.c
industrialio-trigger.c
industrialio-triggered-event.c
inkern.c