projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80b0a60
)
gpiolib: unlock on error in gpio_export()
author
Dan Carpenter
<dan.carpenter@oracle.com>
Fri, 26 Oct 2012 06:59:43 +0000
(09:59 +0300)
committer
Linus Walleij
<linus.walleij@linaro.org>
Fri, 26 Oct 2012 07:35:17 +0000
(09:35 +0200)
We need to unlock here before returning.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpio/gpiolib.c
b/drivers/gpio/gpiolib.c
index e468eed261c5c48eebcd8695b37208f6ee6c7efb..fd2b71c7099769f12e48be87d80f5f9714894deb 100644
(file)
--- a/
drivers/gpio/gpiolib.c
+++ b/
drivers/gpio/gpiolib.c
@@
-756,7
+756,8
@@
int gpio_export(unsigned gpio, bool direction_may_change)
__func__, gpio,
test_bit(FLAG_REQUESTED, &desc->flags),
test_bit(FLAG_EXPORT, &desc->flags));
- return -EPERM;
+ status = -EPERM;
+ goto fail_unlock;
}
if (!desc->chip->direction_input || !desc->chip->direction_output)