iio:adc:at91: Relase mutex on error path in at91_adc_read_raw
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 26 Jun 2012 08:43:05 +0000 (10:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 26 Jun 2012 21:57:30 +0000 (14:57 -0700)
commit90e6dc7c274dca8a9198e3525488ea991719a799
tree80c0cf43ce915bbd5871374d27b31ba14e64a816
parentbb23378c0b1c9a410d40adea74276544a00fb94e
iio:adc:at91: Relase mutex on error path in at91_adc_read_raw

This issue was reported by the mini_lock.cocci coccinelle semantic patch.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/adc/at91_adc.c