summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMiaoqian Lin <linmq006@gmail.com>2022-05-26 12:52:08 +0400
committerDavid S. Miller <davem@davemloft.net>2022-05-27 08:00:40 +0100
commit5dd89d2fc438457811cbbec07999ce0d80051ff5 (patch)
treed9969ec05020be38f34d2f5a923b0668c17b0042 /net
parente7e7104e2d5ddf3806a28695670f21bef471f1e1 (diff)
downloadlinux-5dd89d2fc438457811cbbec07999ce0d80051ff5.tar.bz2
net: ethernet: ti: am65-cpsw-nuss: Fix some refcount leaks
of_get_child_by_name() returns a node pointer with refcount incremented, we should use of_node_put() on it when not need anymore. am65_cpsw_init_cpts() and am65_cpsw_nuss_probe() don't release the refcount in error case. Add missing of_node_put() to avoid refcount leak. Fixes: b1f66a5bee07 ("net: ethernet: ti: am65-cpsw-nuss: enable packet timestamping support") Fixes: 93a76530316a ("net: ethernet: ti: introduce am65x/j721e gigabit eth subsystem driver") Signed-off-by: Miaoqian Lin <linmq006@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions