linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH] gpio-sch: Fix leak of resource
       [not found] <20120724125504.11014.60700.stgit@localhost.localdomain>
@ 2012-07-29 15:52 ` Linus Walleij
  0 siblings, 0 replies; only message in thread
From: Linus Walleij @ 2012-07-29 15:52 UTC (permalink / raw)
  To: Alan Cox; +Cc: Seth Heasley, linux-kernel

On Tue, Jul 24, 2012 at 2:55 PM, Alan Cox <alan@lxorguk.ukuu.org.uk> wrote:

> From: Alan Cox <alan@linux.intel.com>
>
> Signed-off-by: Alan Cox <alan@linux.intel.com>
> ---
>
>  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;

Applied to my fixes branch, CCing the list if there are complaints.

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-07-29 15:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20120724125504.11014.60700.stgit@localhost.localdomain>
2012-07-29 15:52 ` [PATCH] gpio-sch: Fix leak of resource Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).