linux-sg2042/drivers/staging/iio
Alexey Khoroshilov 95264c8c6a staging: iio: ad7152: Fix deadlock in ad7152_write_raw_samp_freq()
ad7152_write_raw_samp_freq() is called by ad7152_write_raw() with
chip->state_lock held. So, there is unavoidable deadlock when
ad7152_write_raw_samp_freq() locks the mutex itself.

The patch removes unneeded locking.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Fixes: 6572389bcc ("staging: iio: cdc: ad7152: Implement
IIO_CHAN_INFO_SAMP_FREQ attribute")
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2017-05-28 15:45:46 +01:00
..
Documentation staging: iio: tsl2583: move out of staging 2016-11-13 13:07:33 +00:00
accel Staging: iio: accel: adis16203: fixed a brace coding style issue 2017-04-14 16:13:34 +01:00
adc staging: iio: adc: ad7280a: fix permission coding style issue 2017-03-25 17:07:24 +00:00
addac staging: iio: Add blank lines after function declarations 2017-03-23 19:43:34 +00:00
cdc staging: iio: ad7152: Fix deadlock in ad7152_write_raw_samp_freq() 2017-05-28 15:45:46 +01:00
frequency staging: iio: ad9832: use 4-digit octal permissions 2017-04-02 10:20:48 +01:00
gyro iio: gyro: adis16060: Change the name of function. 2017-04-02 09:10:32 +01:00
impedance-analyzer staging: iio: ad5933: Protect DIRECT mode using claim/release helpers 2017-04-14 15:09:06 +01:00
light staging: iio: light: tsl2x7x constify attribute_group structures 2017-04-01 11:40:36 +01:00
meter iio:meter:ade7759: Removing use of deprecated macros (S_IRUGO, S_IWUSR) 2017-04-14 15:09:07 +01:00
resolver Staging: iio: resolver: ad2s1210: Fix warning, statements should start on a tabstop 2017-03-19 11:06:59 +00:00
trigger iio: trigger: free trigger resource correctly 2017-01-22 16:14:21 +00:00
Kconfig iio: hmc5843: Move hmc5843 out of staging 2016-02-24 20:40:39 +00:00
Makefile iio: hmc5843: Move hmc5843 out of staging 2016-02-24 20:40:39 +00:00
TODO staging:iio:TODO drop outdated entries in this todo. 2016-10-23 19:33:40 +01:00