projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15b80d6
)
Staging: iio/light/tsl2563: unlock on an error path
author
Dan Carpenter
<dan.carpenter@oracle.com>
Thu, 6 Oct 2011 06:15:03 +0000
(09:15 +0300)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Tue, 11 Oct 2011 15:58:58 +0000
(09:58 -0600)
We need to unlock here before returning.
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/light/tsl2563.c
patch
|
blob
|
history
diff --git
a/drivers/staging/iio/light/tsl2563.c
b/drivers/staging/iio/light/tsl2563.c
index
3707772
..
8977f58
100644
(file)
--- a/
drivers/staging/iio/light/tsl2563.c
+++ b/
drivers/staging/iio/light/tsl2563.c
@@
-518,7
+518,8
@@
static int tsl2563_read_raw(struct iio_dev *indio_dev,
ret = IIO_VAL_INT;
break;
default:
- return -EINVAL;
+ ret = -EINVAL;
+ goto error_ret;
}
error_ret: