[PATCH] firmware: meson_sm: fix device leak at probe

Markus Elfring Markus.Elfring at web.de
Sun Aug 3 03:42:34 PDT 2025


> Make sure to drop the reference to the secure monitor device taken by
> of_find_device_by_node() when looking up its driver data on behalf of
> other drivers (e.g. during probe).
…

How do you think about to use the attribute “put_device” for this purpose?
https://elixir.bootlin.com/linux/v6.16/source/include/linux/device.h#L1140

Regards,
Markus



More information about the linux-amlogic mailing list