aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorMiaoqian Lin <[email protected]>2022-06-05 07:23:34 +0000
committerJakub Kicinski <[email protected]>2022-06-08 03:45:14 +0000
commit0737e018a05e2aa352828c52bdeed3b02cff2930 (patch)
tree867375ab8f91722c4e406cead30a6458db6f1bde /net/switchdev/switchdev.c
parentMerge git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf (diff)
downloadkernel-0737e018a05e2aa352828c52bdeed3b02cff2930.tar.gz
kernel-0737e018a05e2aa352828c52bdeed3b02cff2930.zip
net: dsa: lantiq_gswip: Fix refcount leak in gswip_gphy_fw_list
Every iteration of for_each_available_child_of_node() decrements the reference count of the previous node. when breaking early from a for_each_available_child_of_node() loop, we need to explicitly call of_node_put() on the gphy_fw_np. Add missing of_node_put() to avoid refcount leak. Fixes: 14fceff4771e ("net: dsa: Add Lantiq / Intel DSA driver for vrx200") 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