]> git.baikalelectronics.ru Git - kernel.git/commit
net: cpsw: add missing of_node_put() in cpsw_probe_dt()
authorYang Yingliang <yangyingliang@huawei.com>
Fri, 29 Apr 2022 01:53:37 +0000 (09:53 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 30 Apr 2022 12:37:20 +0000 (13:37 +0100)
commit76abac1355ca6d1b904404c1aa36bab3c8d7991a
treec45769af20db48078cb848a70e253b1148cf5bce
parentd152f2885302b5d3b73c102c525065a6c7add92a
net: cpsw: add missing of_node_put() in cpsw_probe_dt()

'tmp_node' need be put before returning from cpsw_probe_dt(),
so add missing of_node_put() in error path.

Fixes: f5a1d52100ec ("net: ethernet: ti: introduce cpsw switchdev based driver part 1 - dual-emac")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw_new.c