kernel-fxtec-pro1x/drivers/iio/dac
Alexandru Ardelean b86f06e13c iio: dac: ad5592r: fix unbalanced mutex unlocks in ad5592r_read_raw()
commit 65afb0932a81c1de719ceee0db0b276094b10ac8 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 56ca9db862: ("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 11:05:31 +02:00
..
ad5064.c iio: ad5064: Fix regulator handling 2018-11-13 11:08:47 -08:00
ad5360.c iio:dac: drop assignment of iio_info.driver_module 2017-08-22 21:26:54 +01:00
ad5380.c iio: dac: ad5380: fix incorrect assignment to val 2020-01-27 14:51:09 +01:00
ad5421.c iio:dac: drop assignment of iio_info.driver_module 2017-08-22 21:26:54 +01:00
ad5446.c iio: dac: ad5446: Add support for new AD5600 DAC 2019-12-31 16:36:00 +01:00
ad5449.c iio:dac: drop assignment of iio_info.driver_module 2017-08-22 21:26:54 +01:00
ad5504.c iio:dac: drop assignment of iio_info.driver_module 2017-08-22 21:26:54 +01:00
ad5592r-base.c iio: dac: ad5592r: fix unbalanced mutex unlocks in ad5592r_read_raw() 2020-08-21 11:05:31 +02:00
ad5592r-base.h
ad5592r.c
ad5593r.c
ad5624r.h
ad5624r_spi.c iio:dac: drop assignment of iio_info.driver_module 2017-08-22 21:26:54 +01:00
ad5686-spi.c iio:dac:ad5686: Add AD5681R/AD5682R/AD5683/AD5683R support 2018-05-20 11:45:45 +01:00
ad5686.c iio: dac: ad5686: fix bit shift read register 2019-01-13 09:51:08 +01:00
ad5686.h iio:dac:ad5686: Add AD5311R support 2018-06-10 14:30:09 +01:00
ad5696-i2c.c iio:dac:ad5686: Add AD5311R support 2018-06-10 14:30:09 +01:00
ad5755.c iio:dac: drop assignment of iio_info.driver_module 2017-08-22 21:26:54 +01:00
ad5758.c iio: dac: Add AD5758 support 2018-07-07 18:16:32 +01:00
ad5761.c iio:dac: drop assignment of iio_info.driver_module 2017-08-22 21:26:54 +01:00
ad5764.c iio: Replace occurrences of magic number 0 by IIO_CHAN_INFO_RAW 2018-03-07 20:14:36 +00:00
ad5791.c iio:dac: drop assignment of iio_info.driver_module 2017-08-22 21:26:54 +01:00
ad7303.c iio:dac: drop assignment of iio_info.driver_module 2017-08-22 21:26:54 +01:00
ad8801.c iio:dac: drop assignment of iio_info.driver_module 2017-08-22 21:26:54 +01:00
cio-dac.c iio:dac: drop assignment of iio_info.driver_module 2017-08-22 21:26:54 +01:00
dpot-dac.c iio:dac: drop assignment of iio_info.driver_module 2017-08-22 21:26:54 +01:00
ds4424.c iio: dac: ds4422/ds4424 fix chip verification 2019-06-09 09:17:15 +02:00
Kconfig iio: dac: ad5446: Add support for new AD5600 DAC 2019-12-31 16:36:00 +01:00
lpc18xx_dac.c iio:dac: drop assignment of iio_info.driver_module 2017-08-22 21:26:54 +01:00
ltc2632.c treewide: convert ISO_8859-1 text comments to utf-8 2018-08-23 18:48:43 -07:00
m62332.c iio:dac: drop assignment of iio_info.driver_module 2017-08-22 21:26:54 +01:00
Makefile iio: dac: Add AD5758 support 2018-07-07 18:16:32 +01:00
max517.c iio:dac: drop assignment of iio_info.driver_module 2017-08-22 21:26:54 +01:00
max5821.c iio:dac: drop assignment of iio_info.driver_module 2017-08-22 21:26:54 +01:00
mcp4725.c iio: dac: mcp4725: add missing powerdown bits in store eeprom 2019-04-27 09:36:35 +02:00
mcp4922.c iio: dac: mcp4922: fix error handling in mcp4922_write_raw 2019-11-20 18:45:21 +01:00
stm32-dac-core.c iio: stm32: Adopt SPDX identifier 2018-01-08 16:03:41 +01:00
stm32-dac-core.h iio: stm32: Adopt SPDX identifier 2018-01-08 16:03:41 +01:00
stm32-dac.c iio: stm32: Adopt SPDX identifier 2018-01-08 16:03:41 +01:00
ti-dac082s085.c iio: dac: ti-dac082s085: Read chip spec from device table 2017-10-21 20:36:45 +01:00
ti-dac5571.c iio: dac: ti-dac5571 remove redundant variable 'shift' 2018-07-07 17:43:37 +01:00
vf610_dac.c iio: dac: vf610: Fix an error handling path in 'vf610_dac_probe()' 2020-05-27 17:37:43 +02:00