diff options
author | Liang He <[email protected]> | 2022-07-14 23:31:38 +0800 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2022-07-15 16:44:53 -0700 |
commit | a14bd7475452c51835dd5a0cee4c8fa48dd0b539 (patch) | |
tree | 08e0f92cedf8846f8e159d4e067371e394831751 /tools/perf/util/scripting-engines/trace-event-perl.c | |
parent | 8f3184b951164131a8b35770f225082cc02008be (diff) |
net: dsa: microchip: ksz_common: Fix refcount leak bug
In ksz_switch_register(), we should call of_node_put() for the
reference returned by of_get_child_by_name() which has increased
the refcount.
Fixes: 912aae27c6af ("net: dsa: microchip: really look for phy-mode in port nodes")
Signed-off-by: Liang He <[email protected]>
Reviewed-by: Vladimir Oltean <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
0 files changed, 0 insertions, 0 deletions