iio: addac: stx104: Fix race condition when converting analog-to-digital
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: 4075a283 ("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>
Loading
-
mentioned in commit 436b4232
-
mentioned in commit c5e58083
-
mentioned in commit d2ba1f40
-
mentioned in commit 9d160982
-
mentioned in commit f6576d48
-
mentioned in commit aeecd8d9
-
mentioned in commit 9fa82f03
-
mentioned in commit cadf8f2d
-
mentioned in commit 89a007f3
-
mentioned in commit 565b96d9
-
mentioned in commit 6089d354
-
mentioned in commit d31d04ec
Please register or sign in to comment