[PATCH] soc: mediatek: mtk-svs: Call of_node_put(np) only once in svs_get_subsys_device()

AngeloGioacchino Del Regno angelogioacchino.delregno at collabora.com
Wed Oct 2 02:08:06 PDT 2024


On Tue, 24 Sep 2024 20:08:15 +0200, Markus Elfring wrote:
> An of_node_put(np) call was immediately used after a pointer check
> for a of_find_device_by_node() call in this function implementation.
> Thus call such a function only once instead directly before the check.
> 
> This issue was transformed by using the Coccinelle software.
> 
> 
> [...]

Applied to v6.12-next/soc, thanks!

[1/1] soc: mediatek: mtk-svs: Call of_node_put(np) only once in svs_get_subsys_device()
      https://git.kernel.org/mediatek/c/1ee71494

Cheers,
Angelo





More information about the Linux-mediatek mailing list