diff options
author | Miaoqian Lin <linmq006@gmail.com> | 2022-06-07 08:11:43 +0400 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-06-08 20:52:41 -0700 |
commit | 11ec18b1d8d92b9df307d31950dcba0b3dd7283c (patch) | |
tree | 83baef0e91584f4680fbea5ade26259b4f6b34e8 /.cocciconfig | |
parent | 2061ecfdf2350994e5b61c43e50e98a7a70e95ee (diff) | |
download | linux-11ec18b1d8d92b9df307d31950dcba0b3dd7283c.tar.bz2 |
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 <linmq006@gmail.com>
Link: https://lore.kernel.org/r/20220607041144.7553-1-linmq006@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to '.cocciconfig')
0 files changed, 0 insertions, 0 deletions