Files
erofs-linux/drivers/iio
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 <[email protected]>
Reviewed-by: Joshua Crofts <[email protected]>
Reviewed-by: Maxwell Doose <[email protected]>
Reviewed-by: Nuno Sá <[email protected]>
Cc: <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
2026-05-15 12:05:35 +01:00
..
…
…
…
…