projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d7614f
)
gpio-sch: Fix leak of resource
author
Alan Cox
<alan@linux.intel.com>
Tue, 24 Jul 2012 12:55:10 +0000
(13:55 +0100)
committer
Linus Walleij
<linus.walleij@linaro.org>
Sat, 4 Aug 2012 22:33:48 +0000
(
00:33
+0200)
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-sch.c
patch
|
blob
|
history
diff --git
a/drivers/gpio/gpio-sch.c
b/drivers/gpio/gpio-sch.c
index 424dce8e3f30107ce2e9b5eb9b5d2bb394164cf9..8707d4572a06bfee4713fab5b521cd58f220aefa 100644
(file)
--- a/
drivers/gpio/gpio-sch.c
+++ b/
drivers/gpio/gpio-sch.c
@@
-241,7
+241,8
@@
static int __devinit sch_gpio_probe(struct platform_device *pdev)
break;
default:
- return -ENODEV;
+ err = -ENODEV;
+ goto err_sch_gpio_core;
}
sch_gpio_core.dev = &pdev->dev;