Thread (15 messages) read the whole thread 15 messages, 4 authors, 2012-06-27
STALE5146d

[PATCH 04/12] gpio-sch: Fix leak of resource

From: Alan Cox <hidden>
Date: 2012-06-27 11:05:41
Subsystem: gpio subsystem, intel gpio drivers, the rest · Maintainers: Linus Walleij, Bartosz Golaszewski, Andy Shevchenko, Linus Torvalds

From: Alan Cox <redacted>

Signed-off-by: Alan Cox <redacted>
---

 drivers/gpio/gpio-sch.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpio/gpio-sch.c b/drivers/gpio/gpio-sch.c
index 424dce8..8707d45 100644
--- 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;
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help