Re: [PATCH net v3 07/14] net: pse-pd: do not tie a shared power domain to its creator's devres

From
Kory Maincent <kory.maincent@bootlin.com>
Date
2026-11-04 15:19:55
Also in
lkml
Reply to
Carlo Szelinsky, 2026-11-03
On Tue, 03 Nov 2026 23:02:10 +0100, Carlo Szelinsky [off-list ref] wrote:
A power domain is shared by all controllers on the same supply and
counted with a kref, but it is devm memory of the controller that
created it. When that controller unbinds while another one still uses
the domain, devres frees it anyway, and the other controller and the
global map keep pointing at freed memory. The same happens when
pse_register_pw_ds() fails part way: the domains it already set up stay
in the map, and devres frees them.

[...]
Reviewed-by: Kory Maincent <kory.maincent@bootlin.com>

-- 
Köry Maincent, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com
Thread (32 messages) 32 messages, 3 authors, last reply 2d ago
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help