[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <530a92788ef6763ecb359347a1fcaafb.sboyd@kernel.org>
Date: Sat, 16 Dec 2023 17:15:10 -0800
From: Stephen Boyd <sboyd@...nel.org>
To: Kuan-Wei Chiu <visitorckw@...il.com>, mturquette@...libre.com
Cc: duje.mihanovic@...le.hr, conor.dooley@...rochip.com, linux-clk@...r.kernel.org, linux-kernel@...r.kernel.org, Kuan-Wei Chiu <visitorckw@...il.com>
Subject: Re: [PATCH] clk: mmp: pxa168: Fix memory leak in pxa168_clk_init()
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@...il.com>
> ---
Applied to clk-next
Powered by blists - more mailing lists