]> git.baikalelectronics.ru Git - kernel.git/commit
net: mscc: ocelot: Add of_node_put() before goto
authorWan Jiabing <wanjiabing@vivo.com>
Mon, 18 Oct 2021 01:32:32 +0000 (21:32 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Oct 2021 12:44:48 +0000 (13:44 +0100)
commitd1a7b9e4696584ce05c12567762c18a866837a85
treeb256a6c968d53d3860c16009b04f5b039c12afc5
parentd9fd7e9fccfac466fb528a783f2fc76f2982604c
net: mscc: ocelot: Add of_node_put() before goto

Fix following coccicheck warning:
./drivers/net/ethernet/mscc/ocelot_vsc7514.c:946: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/mscc/ocelot_vsc7514.c