All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Boyd <sboyd@kernel.org>
To: Xiu Jianfeng <xiujianfeng@huawei.com>,
	alim.akhtar@samsung.com, cw00.choi@samsung.com,
	dianders@chromium.org, krzysztof.kozlowski@linaro.org,
	mturquette@baylibre.com, mturquette@linaro.org,
	s.nawrocki@samsung.com, tomasz.figa@gmail.com,
	yadi.brar@samsung.com
Cc: linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] clk: samsung: Fix memory leak in _samsung_clk_register_pll()
Date: Wed, 07 Dec 2022 18:26:50 -0800	[thread overview]
Message-ID: <20221208022652.E436DC433D6@smtp.kernel.org> (raw)
In-Reply-To: <20221123032015.63980-1-xiujianfeng@huawei.com>

Quoting Xiu Jianfeng (2022-11-22 19:20:15)
> If clk_register() fails, @pll->rate_table may have allocated memory by
> kmemdup(), so it needs to be freed, otherwise will cause memory leak
> issue, this patch fixes it.
> 
> Fixes: 3ff6e0d8d64d ("clk: samsung: Add support to register rate_table for samsung plls")
> Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
> ---

Applied to clk-next

      parent reply	other threads:[~2022-12-08  2:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20221123032321epcas5p235a61ac36bf6c90dc4f0fbf516646dd9@epcas5p2.samsung.com>
2022-11-23  3:20 ` [PATCH] clk: samsung: Fix memory leak in _samsung_clk_register_pll() Xiu Jianfeng
2022-11-23  4:02   ` Alim Akhtar
2022-12-08  2:26   ` Stephen Boyd [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=20221208022652.E436DC433D6@smtp.kernel.org \
    --to=sboyd@kernel.org \
    --cc=alim.akhtar@samsung.com \
    --cc=cw00.choi@samsung.com \
    --cc=dianders@chromium.org \
    --cc=krzysztof.kozlowski@linaro.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=mturquette@baylibre.com \
    --cc=mturquette@linaro.org \
    --cc=s.nawrocki@samsung.com \
    --cc=tomasz.figa@gmail.com \
    --cc=xiujianfeng@huawei.com \
    --cc=yadi.brar@samsung.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.