Ubuntu-focal-kernel/drivers/iio
William Breathitt Gray 55f0eecdcc iio: addac: stx104: Fix race condition when converting analog-to-digital
BugLink: https://bugs.launchpad.net/bugs/2039440

[ Upstream commit 4f9b80aefb9e2f542a49d9ec087cf5919730e1dd ]

The ADC conversion procedure requires several device I/O operations
performed in a particular sequence. If stx104_read_raw() is called
concurrently, the ADC conversion procedure could be clobbered. Prevent
such a race condition by utilizing a mutex.

Fixes: 4075a283ae ("iio: stx104: Add IIO support for the ADC channels")
Signed-off-by: William Breathitt Gray <william.gray@linaro.org>
Link: https://lore.kernel.org/r/2ae5e40eed5006ca735e4c12181a9ff5ced65547.1680790580.git.william.gray@linaro.org
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Manuel Diewald <manuel.diewald@canonical.com>
Signed-off-by: Roxana Nicolescu <roxana.nicolescu@canonical.com>
2023-10-30 11:41:56 +01:00
..
accel iio: accel: mma9551_core: Prevent uninitialized variable in mma9551_read_config_word() 2023-05-12 17:15:15 +02:00
adc iio: stx104: Move to addac subdirectory 2023-10-30 11:41:56 +01:00
addac iio: addac: stx104: Fix race condition when converting analog-to-digital 2023-10-30 11:41:56 +01:00
afe iio: afe: rescale: use s64 for temporary scale calculations 2022-05-20 15:18:14 +02:00
amplifiers
buffer
chemical iio:chemical:ccs811: rearrange iio trigger get and register 2022-08-26 11:11:16 +02:00
common iio: cros_ec: Fix the allocation size for cros_ec_command 2023-10-30 11:41:52 +01:00
dac iio: dac: build ad5758 driver when AD5758 is selected 2023-08-09 12:25:40 +02:00
dummy iio: dummy: iio_simple_dummy: check the return value of kstrdup() 2022-08-26 11:09:17 +02:00
frequency
gyro iio: gyro: mpu3050: Fix the error handling in mpu3050_power_up() 2022-08-26 11:11:18 +02:00
health iio: health: afe4404: Fix oob read in afe4404_[read|write]_raw 2023-02-01 15:21:35 +01:00
humidity
imu iio: Fix error handling for PM 2022-05-20 15:17:15 +02:00
light iio: light: vcnl4035: fixed chip ID check 2023-08-09 12:25:40 +02:00
magnetometer iio: magnetometer: ak8975: Fix the error handling in ak8975_power_on() 2022-06-22 14:51:02 +02:00
multiplexer
orientation
potentiometer
potentiostat
pressure iio: pressure: ms5611: fixed value compensation bug 2023-02-01 15:21:26 +01:00
proximity
resolver
temperature
trigger iio: trigger: sysfs: fix possible memory leak in iio_sysfs_trig_init() 2023-02-01 15:21:11 +01:00
Kconfig iio: add addac subdirectory 2023-10-30 11:41:56 +01:00
Makefile iio: add addac subdirectory 2023-10-30 11:41:56 +01:00
iio_core.h
iio_core_trigger.h
industrialio-buffer.c
industrialio-configfs.c
industrialio-core.c
industrialio-event.c
industrialio-sw-device.c
industrialio-sw-trigger.c iio: core: Fix entry not deleted when iio_register_sw_trigger_type() fails 2023-02-01 15:21:26 +01:00
industrialio-trigger.c
industrialio-triggered-event.c
inkern.c iio: inkern: only release the device node when done with it 2023-01-06 08:43:58 -08:00