public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Mike Turquette <mturquette@linaro.org>
To: Colin King <colin.king@canonical.com>,
	"Linus Walleij" <linus.walleij@linaro.org>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] clk: versatile: free icst on error return
Date: Fri, 30 May 2014 17:08:31 -0700	[thread overview]
Message-ID: <20140531000831.10062.52682@quantum> (raw)
In-Reply-To: <1397325554-1439-1-git-send-email-colin.king@canonical.com>

Quoting Colin King (2014-04-12 10:59:14)
> From: Colin Ian King <colin.king@canonical.com>
> 
> commit a183da63 introduced a new error return path that does
> not kfree icst if the kmemdup of desc->params fails.
> 
> Signed-off-by: Colin Ian King <colin.king@canonical.com>

Applied to clk-next.

Thanks,
Mike

> ---
>  drivers/clk/versatile/clk-icst.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/clk/versatile/clk-icst.c b/drivers/clk/versatile/clk-icst.c
> index a820b0c..eb3a1e4 100644
> --- a/drivers/clk/versatile/clk-icst.c
> +++ b/drivers/clk/versatile/clk-icst.c
> @@ -140,6 +140,7 @@ struct clk *icst_clk_register(struct device *dev,
>  
>         pclone = kmemdup(desc->params, sizeof(*pclone), GFP_KERNEL);
>         if (!pclone) {
> +               kfree(icst);
>                 pr_err("could not clone ICST params\n");
>                 return ERR_PTR(-ENOMEM);
>         }
> -- 
> 1.9.1
> 

      parent reply	other threads:[~2014-05-31  0:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-12 17:59 [PATCH] clk: versatile: free icst on error return Colin King
2014-04-22 13:04 ` Linus Walleij
2014-05-31  0:08 ` Mike Turquette [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140531000831.10062.52682@quantum \
    --to=mturquette@linaro.org \
    --cc=colin.king@canonical.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox