projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15fbc19
)
Staging: iio/adc/ad7150: release lock on error
author
Dan Carpenter
<dan.carpenter@oracle.com>
Thu, 6 Oct 2011 06:17:00 +0000
(09:17 +0300)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Tue, 11 Oct 2011 15:58:58 +0000
(09:58 -0600)
The error_ret label should have been before the mutex_unlock(). It's
a typo.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/adc/ad7150.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/staging/iio/adc/ad7150.c
b/drivers/staging/iio/adc/ad7150.c
index 89434205b6f1a2d7f82424ee80fd5f25b838c33d..d1767d8f8bdbc62880ee3e6815d5fe8163ad0013 100644
(file)
--- a/
drivers/staging/iio/adc/ad7150.c
+++ b/
drivers/staging/iio/adc/ad7150.c
@@
-332,8
+332,8
@@
static int ad7150_write_event_value(struct iio_dev *indio_dev,
/* write back if active */
ret = ad7150_write_event_params(indio_dev, event_code);
- mutex_unlock(&chip->state_lock);
error_ret:
+ mutex_unlock(&chip->state_lock);
return ret;
}