Files
linux/drivers/iio/adc
Salah Triki 422b5bbf33 iio: adc: viperboard: Fix error handling in vprbrd_iio_read_raw
The driver proceeds to the reception phase even if the preceding
transmission fails.

This uses a goto error label for an early bail out and ensures the mutex is
properly unlocked in case of failure.

Fixes: ffd8a6e7a7 ("iio: adc: Add viperboard adc driver")
Signed-off-by: Salah Triki <salah.triki@gmail.com>
Reviewed-by: Joshua Crofts <joshua.crofts1@gmail.com>
Reviewed-by: Maxwell Doose <m32285159@gmail.com>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2026-05-15 12:05:35 +01:00
..
2026-01-11 13:30:29 +00:00
2025-03-11 19:08:56 +00:00
2024-11-03 20:33:44 +00:00
2025-06-26 19:32:52 +01:00
2026-03-22 12:20:42 +00:00
2025-04-22 19:10:04 +01:00
2024-09-30 09:21:02 +01:00
2025-04-22 19:10:04 +01:00
2025-10-20 18:51:04 +01:00
2025-09-13 15:00:48 +01:00