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: <20260115-jukebox-material-b3a74f84744a@spud>
Date: Thu, 15 Jan 2026 19:17:02 +0000
From: Conor Dooley <conor@...nel.org>
To: Zilin Guan <zilin@....edu.cn>
Cc: conor@...nel.org,
	Conor Dooley <conor.dooley@...rochip.com>,
	daire.mcnamara@...rochip.com,
	linux-riscv@...ts.infradead.org,
	linux-kernel@...r.kernel.org,
	Jianhao Xu <jianhao.xu@....edu.cn>
Subject: Re: [PATCH] soc: microchip: mpfs: Fix memory leak in mpfs_sys_controller_probe()

From: Conor Dooley <conor.dooley@...rochip.com>

On Sun, 28 Dec 2025 12:48:36 +0000, Zilin Guan wrote:
> In mpfs_sys_controller_probe(), if of_get_mtd_device_by_node() fails,
> the function returns immediately without freeing the allocated memory
> for sys_controller, leading to a memory leak.
> 
> Fix this by jumping to the out_free label to ensure the memory is
> properly freed.
> 
> [...]

Applied to riscv-soc-fixes, thanks!

[1/1] soc: microchip: mpfs: Fix memory leak in mpfs_sys_controller_probe()
      https://git.kernel.org/conor/c/5a741f8cc6fe

Thanks,
Conor.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ