diff options
author | Miaoqian Lin <linmq006@gmail.com> | 2022-05-26 18:52:08 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-06-14 18:36:10 +0200 |
commit | c1df9cb756e5a9ba1841648c44ee5d92306b9c65 (patch) | |
tree | 523d2def4481bafd5fae15e5935e270a7b1feafe /scripts | |
parent | a4b7ef3b159805ba6be061d0cd2403d84b9b0063 (diff) | |
download | linux-stable-c1df9cb756e5a9ba1841648c44ee5d92306b9c65.tar.gz linux-stable-c1df9cb756e5a9ba1841648c44ee5d92306b9c65.tar.bz2 linux-stable-c1df9cb756e5a9ba1841648c44ee5d92306b9c65.zip |
net: dsa: mv88e6xxx: Fix refcount leak in mv88e6xxx_mdios_register
[ Upstream commit 02ded5a173619b11728b8bf75a3fd995a2c1ff28 ]
of_get_child_by_name() returns a node pointer with refcount
incremented, we should use of_node_put() on it when done.
mv88e6xxx_mdio_register() pass the device node to of_mdiobus_register().
We don't need the device node after it.
Add missing of_node_put() to avoid refcount leak.
Fixes: a3c53be55c95 ("net: dsa: mv88e6xxx: Support multiple MDIO busses")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Reviewed-by: Marek BehĂșn <kabel@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions