gpio-sch: Fix leak of resource
A message that is not in the archive (sent off-list or not yet received): [email protected]
Linus Walleij
AppliedQuoted 13 lines · Alan Cox
From: Alan Cox <[email protected]>
Signed-off-by Alan Cox <[email protected]>---
drivers/gpio/gpio-sch.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/gpio/gpio-sch.c +0
-0
drivers/gpio/gpio-sch.c static int __devinit sch_gpio_probe(struct platform_device *pdev) · line 248
Quoted 9 lines
drivers/gpio/gpio-sch.c +2
-1@@ -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;
Applied to my fixes branch, CCing the list if there are complaints.
Yours,
Linus Walleij