Re: [PATCH net v3 07/14] net: pse-pd: do not tie a shared power domain to its creator's devres
From: Kory Maincent
Date: Wed Nov 04 2026 - 10:28:34 EST
On Tue, 03 Nov 2026 23:02:10 +0100, Carlo Szelinsky <github@xxxxxxxxxxxx> 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@xxxxxxxxxxx>
--
Köry Maincent, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com