lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <f3e5af2eb7a63ab1a2dd993bfb0d8f41.sboyd@kernel.org>
Date: Sat, 16 Dec 2023 17:13:08 -0800
From: Stephen Boyd <sboyd@...nel.org>
To: Kuan-Wei Chiu <visitorckw@...il.com>, mturquette@...libre.com
Cc: robh@...nel.org, abel.vesa@...aro.org, dinguyen@...nel.org, linux-clk@...r.kernel.org, linux-kernel@...r.kernel.org, Kuan-Wei Chiu <visitorckw@...il.com>
Subject: Re: [PATCH] clk: hi3620: Fix memory leak in hi3620_mmc_clk_init()

Quoting Kuan-Wei Chiu (2023-12-10 08:50:40)
> In cases where kcalloc() fails for the 'clk_data->clks' allocation, 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 'clk_data' before returning.
> 
> Signed-off-by: Kuan-Wei Chiu <visitorckw@...il.com>
> ---

Applied to clk-next

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ