linux_dsm_epyc7002/drivers/net/ethernet/ti
Wen Yang 75eac7b5f6 net: ethernet: ti: fix possible object reference leak
The call to of_get_child_by_name returns a node pointer with refcount
incremented thus it must be explicitly decremented after the last
usage.

Detected by coccinelle with the following warnings:
./drivers/net/ethernet/ti/netcp_ethss.c:3661:2-8: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 3654, but without a corresponding object release within this function.
./drivers/net/ethernet/ti/netcp_ethss.c:3665:2-8: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 3654, but without a corresponding object release within this function.

Signed-off-by: Wen Yang <wen.yang99@zte.com.cn>
Cc: Wingman Kwok <w-kwok2@ti.com>
Cc: Murali Karicheri <m-karicheri2@ti.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: netdev@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-03-23 21:21:24 -04:00
..
cpmac.c net: ti: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop profiles 2019-01-28 23:09:19 -08:00
cpsw_ale.c net: ethernet: ti: cpsw_ale: use const for API having pointer on mac address 2018-10-15 22:21:27 -07:00
cpsw_ale.h net: ethernet: ti: cpsw_ale: use const for API having pointer on mac address 2018-10-15 22:21:27 -07:00
cpsw-common.c net: ti: cpsw-common: dont print error if ti_cm_get_macid() fails 2017-08-30 10:05:07 -07:00
cpsw-phy-sel.c net: ethernet: ti: cpsw-phy-sel: remove unneeded semicolon 2019-01-17 22:05:16 -08:00
cpsw.c USB/PHY patches for 4.21-rc1 2018-12-28 20:30:00 -08:00
cpsw.h net: ethernet: ti: cpsw: deprecate cpsw-phy-sel driver 2019-02-21 07:33:51 -08:00
cpts.c net: (cpts) fix a missing check of clk_prepare 2018-12-27 16:20:23 -08:00
cpts.h net: ethernet: ti: cpts: move enable/disable flags outside of cpts module 2018-11-13 16:29:59 -08:00
davinci_cpdma.c net: ethernet: ti: cpdma: fit rated channels in backward order 2018-07-23 20:34:36 -07:00
davinci_cpdma.h net: ethernet: ti: cpsw: enable vlan rx vlan offload 2018-03-17 19:51:01 -04:00
davinci_emac.c davinci_emac: always build in CONFIG_OF code 2019-03-07 09:22:35 -08:00
davinci_mdio.c net: davinci: fix building davinci mdio code without CONFIG_OF 2018-05-30 13:21:23 -04:00
Kconfig net: ethernet: ti: cpsw: deprecate cpsw-phy-sel driver 2019-02-21 07:33:51 -08:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
netcp_core.c net: netcp: Fix ethss driver probe issue 2019-02-18 17:49:24 -08:00
netcp_ethss.c net: ethernet: ti: fix possible object reference leak 2019-03-23 21:21:24 -04:00
netcp_sgmii.c
netcp_xgbepcsr.c
netcp.h net: netcp: add api to support set rx mode in netcp modules 2018-04-18 21:00:57 -04:00
tlan.c net: documentation: build a directory structure for drivers 2018-12-05 11:30:06 -08:00
tlan.h