Skip to content

Commit

Permalink
gpio-sch: Fix leak of resource
Browse files Browse the repository at this point in the history
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
  • Loading branch information
Alan Cox authored and Linus Walleij committed Aug 4, 2012
1 parent 0d7614f commit 8abdd2d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/gpio/gpio-sch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8abdd2d

Please sign in to comment.