]> git.dujemihanovic.xyz Git - linux.git/commit
net: fec: put child node on error path
authorPan Bian <bianpan2016@163.com>
Wed, 20 Jan 2021 12:20:37 +0000 (04:20 -0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 23 Jan 2021 03:15:55 +0000 (19:15 -0800)
commit0607a2cddb60f4548b55e28ac56a8d73493a45bb
treee5bb791b71a8f8c8d22a719b826bd800569998d3
parent3765d86ffcd346913c372d69cdc05dc8d56119ac
net: fec: put child node on error path

Also decrement the reference count of child device on error path.

Fixes: 3e782985cb3c ("net: ethernet: fec: Allow configuration of MDIO bus speed")
Signed-off-by: Pan Bian <bianpan2016@163.com>
Link: https://lore.kernel.org/r/20210120122037.83897-1-bianpan2016@163.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/fec_main.c