public inbox for linux-clk@vger.kernel.org
 help / color / mirror / Atom feed
From: Stephen Boyd <sboyd@kernel.org>
To: Kuan-Wei Chiu <visitorckw@gmail.com>, mturquette@baylibre.com
Cc: duje.mihanovic@skole.hr, conor.dooley@microchip.com,
	linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org,
	Kuan-Wei Chiu <visitorckw@gmail.com>
Subject: Re: [PATCH] clk: mmp: pxa168: Fix memory leak in pxa168_clk_init()
Date: Sat, 16 Dec 2023 17:15:10 -0800	[thread overview]
Message-ID: <530a92788ef6763ecb359347a1fcaafb.sboyd@kernel.org> (raw)
In-Reply-To: <20231210175232.3414584-1-visitorckw@gmail.com>

Quoting Kuan-Wei Chiu (2023-12-10 09:52:32)
> In cases where mapping of mpmu/apmu/apbc registers fails, the code path
> does not handle the failure gracefully, potentially leading to a memory
> leak. This fix ensures proper cleanup by freeing the allocated memory
> for 'pxa_unit' before returning.
> 
> Signed-off-by: Kuan-Wei Chiu <visitorckw@gmail.com>
> ---

Applied to clk-next

      parent reply	other threads:[~2023-12-17  1:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-10 17:52 [PATCH] clk: mmp: pxa168: Fix memory leak in pxa168_clk_init() Kuan-Wei Chiu
2023-12-11 13:19 ` Conor Dooley
2023-12-12  5:13   ` Kuan-Wei Chiu
2023-12-17  1:15 ` 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=530a92788ef6763ecb359347a1fcaafb.sboyd@kernel.org \
    --to=sboyd@kernel.org \
    --cc=conor.dooley@microchip.com \
    --cc=duje.mihanovic@skole.hr \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mturquette@baylibre.com \
    --cc=visitorckw@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox