]> git.baikalelectronics.ru Git - kernel.git/commit
net: sparx5: Add of_node_put() before goto
authorWan Jiabing <wanjiabing@vivo.com>
Mon, 18 Oct 2021 01:31:30 +0000 (21:31 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Oct 2021 12:44:48 +0000 (13:44 +0100)
commitd9fd7e9fccfac466fb528a783f2fc76f2982604c
tree710829dd4fad2a5c6e43eaa33ec202af5bc2d570
parent2dc4e9e88cfcc38454d52b01ed3422238c134003
net: sparx5: Add of_node_put() before goto

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>
drivers/net/ethernet/microchip/sparx5/sparx5_main.c