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: <d6cb8ec6-daeb-4e27-8c86-c49bfc69f718@web.de>
Date: Mon, 15 Sep 2025 17:55:23 +0200
From: Markus Elfring <Markus.Elfring@....de>
To: Haoxiang Li <haoxiang_li2024@....com>, linux-tegra@...r.kernel.org,
 linux-clk@...r.kernel.org
Cc: stable@...r.kernel.org, LKML <linux-kernel@...r.kernel.org>,
 Jonathan Hunter <jonathanh@...dia.com>, Miaoqian Lin <linmq006@...il.com>,
 Michael Turquette <mturquette@...libre.com>,
 Peter De Schrijver <pdeschrijver@...dia.com>,
 Prashant Gaikwad <pgaikwad@...dia.com>, Stephen Boyd <sboyd@...nel.org>,
 Thierry Reding <thierry.reding@...il.com>
Subject: Re: [PATCH] clk: tegra: tegra124-emc: Fix a reference leak in
 emc_ensure_emc_driver()

> put_device() is only called on the error path, causing a reference leak
> on the success path. Fix this by calling put_device() once pdev is no
> longer needed.

How do you think about to increase the application of scope-based resource management?
https://elixir.bootlin.com/linux/v6.17-rc6/source/include/linux/device.h#L1180
https://elixir.bootlin.com/linux/v6.17-rc6/source/include/linux/of.h#L138

Regards,
Markus

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ