[PATCH] soc: mediatek: SVS: fix device reference leak in svs_add_device_link()

Markus Elfring Markus.Elfring at web.de
Sun Oct 25 00:58:06 PDT 2026


…
> Drop the reference before returning on both paths.
…

How do you think about to increase the application of scope-based resource management?
https://elixir.bootlin.com/linux/v7.3/source/include/linux/device.h#L1363

Regards,
Markus



More information about the Linux-mediatek mailing list