[PATCH net v2] net: thunderx: Fix resource leaks in a device_for_each_child_node() loop

Markus Elfring Markus.Elfring at web.de
Wed Jul 5 12:32:57 PDT 2023


> The device_for_each_child_node() loop in
> bgx_init_of_phy() function should have
> wnode_handle_put() before break
> which could avoid resource leaks.
> This patch could fix this bug.

Please choose a better imperative change suggestion.

See also:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.4#n94


How do you think about to add the tag “Fixes”?

Regards,
Markus



More information about the linux-arm-kernel mailing list