diff options
| author | 2022-04-20 19:04:08 +0800 | |
|---|---|---|
| committer | 2022-04-22 13:06:58 +0100 | |
| commit | fc06b2867f4cea543505acfb194c2be4ebf0c7d3 (patch) | |
| tree | 6182e526ddb90122a496c10e4b765c268f8f158a /tools/perf/scripts/python | |
| parent | net: cosa: fix error check return value of register_chrdev() (diff) | |
| download | linux-dev-fc06b2867f4cea543505acfb194c2be4ebf0c7d3.tar.xz linux-dev-fc06b2867f4cea543505acfb194c2be4ebf0c7d3.zip | |
net: dsa: Add missing of_node_put() in dsa_port_link_register_of
The device_node pointer is returned by of_parse_phandle() with refcount
incremented. We should use of_node_put() on it when done.
of_node_put() will check for NULL value.
Fixes: a20f997010c4 ("net: dsa: Don't instantiate phylink for CPU/DSA ports unless needed")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
