diff options
| author | Matti Vaittinen <mazziesaccount@gmail.com> | 2026-08-10 10:51:20 +0300 |
|---|---|---|
| committer | Jonathan Cameron <jonathan.cameron@oss.qualcomm.com> | 2026-08-31 00:52:40 +0100 |
| commit | 196cc715dce3576a54065f5cb07185c75778f9a8 (patch) | |
| tree | 3da2379e75aa1cf2e11a14cb05d8565480d4d768 /tools/lib/python | |
| parent | d081c116a16489f7808d35fcf1ee9d4b9869d204 (diff) | |
| download | linux-next-196cc715dce3576a54065f5cb07185c75778f9a8.tar.gz linux-next-196cc715dce3576a54065f5cb07185c75778f9a8.zip | |
iio: adc: rohm-bd79124: Catch regmap errors at measurement start/stop
The bd79124_start_measurement() and bd79124_stop_measurement() ignore
errors from the regmap reads, causing potential use of uninitialized
stack variable when deciding whether the measurement is already
started/stopped. The bd79124_stop_measurement() may also ignore failure
to clear the sequencer state bits, which may make the hardware to ignore
the setting and leave hardware and driver states out of sync.
Check the return value and bail-out if error is detected.
Fixes: 3f57a3b9ab74 ("iio: adc: Support ROHM BD79124 ADC")
Signed-off-by: Matti Vaittinen <mazziesaccount@gmail.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
