summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-sch.c
diff options
context:
space:
mode:
authorAlan Cox <alan@linux.intel.com>2012-07-24 13:55:10 +0100
committerLinus Walleij <linus.walleij@linaro.org>2012-08-05 00:33:48 +0200
commit8abdd2d2d873ece35a201c2e05af7b6998cf0dca (patch)
tree4a461d94d50a9c45d5d25bdda68898f15241fcfb /drivers/gpio/gpio-sch.c
parent0d7614f09c1ebdbaa1599a5aba7593f147bf96ee (diff)
downloadlinux-8abdd2d2d873ece35a201c2e05af7b6998cf0dca.tar.gz
linux-8abdd2d2d873ece35a201c2e05af7b6998cf0dca.tar.bz2
linux-8abdd2d2d873ece35a201c2e05af7b6998cf0dca.zip
gpio-sch: Fix leak of resource
Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-sch.c')
-rw-r--r--drivers/gpio/gpio-sch.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-sch.c b/drivers/gpio/gpio-sch.c
index 424dce8e3f30..8707d4572a06 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;