https://github.com/torvalds/linux
Revision d9fd7e9fccfac466fb528a783f2fc76f2982604c authored by Wan Jiabing on 18 October 2021, 01:31:30 UTC, committed by David S. Miller on 18 October 2021, 12:44:48 UTC
Fix following coccicheck warning:
./drivers/net/ethernet/microchip/sparx5/s4parx5_main.c:723:1-33: WARNING: Function
for_each_available_child_of_node should have of_node_put() before goto

Early exits from for_each_available_child_of_node should decrement the
node reference counter.

Signed-off-by: Wan Jiabing <wanjiabing@vivo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 2dc4e9e
History
Tip revision: d9fd7e9fccfac466fb528a783f2fc76f2982604c authored by Wan Jiabing on 18 October 2021, 01:31:30 UTC
net: sparx5: Add of_node_put() before goto
Tip revision: d9fd7e9

back to top