]> git.baikalelectronics.ru Git - kernel.git/commit
net: ftgmac100: Hold reference returned by of_get_child_by_name()
authorLiang He <windhl@126.com>
Tue, 12 Jul 2022 06:14:17 +0000 (14:14 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Jul 2022 12:29:07 +0000 (13:29 +0100)
commit677b1391b719d1c021b5a3e32fd78d41ecab21b5
treeb51c409796764d0a671b87f91ee857eeed018ec2
parent9c704ffb702d1b7bdacc7b10ce112e52e4248c02
net: ftgmac100: Hold reference returned by of_get_child_by_name()

In ftgmac100_probe(), we should hold the refernece returned by
of_get_child_by_name() and use it to call of_node_put() for
reference balance.

Fixes: 11ada22f905c ("net: ftgmac100: Add support for DT phy-handle property")
Signed-off-by: Liang He <windhl@126.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/faraday/ftgmac100.c