aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorMiaoqian Lin <[email protected]>2022-06-07 04:11:43 +0000
committerJakub Kicinski <[email protected]>2022-06-09 03:52:41 +0000
commit11ec18b1d8d92b9df307d31950dcba0b3dd7283c (patch)
tree83baef0e91584f4680fbea5ade26259b4f6b34e8 /net/switchdev/switchdev.c
parentnet: openvswitch: fix misuse of the cached connection on tuple changes (diff)
downloadkernel-11ec18b1d8d92b9df307d31950dcba0b3dd7283c.tar.gz
kernel-11ec18b1d8d92b9df307d31950dcba0b3dd7283c.zip
net: altera: Fix refcount leak in altera_tse_mdio_create
Every iteration of for_each_child_of_node() decrements the reference count of the previous node. When break from a for_each_child_of_node() loop, we need to explicitly call of_node_put() on the child node when not need anymore. Add missing of_node_put() to avoid refcount leak. Fixes: bbd2190ce96d ("Altera TSE: Add main and header file for Altera Ethernet Driver") Signed-off-by: Miaoqian Lin <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions