mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 17:02:17 +00:00
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]>