summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorWen Yang <wen.yang99@zte.com.cn>2019-03-22 11:04:09 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-05-16 19:44:58 +0200
commitf18c946e6cf1cf69519e5c524429128b789519ae (patch)
tree023ec16c5658562cf8222f26f631a19e83f6cde0 /fs
parent64206dd039fd339647377675f185bddcabd762f6 (diff)
net: ethernet: ti: fix possible object reference leak
[ Upstream commit 75eac7b5f68b0a0671e795ac636457ee27cc11d8 ] 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> Signed-off-by: Sasha Levin (Microsoft) <sashal@kernel.org>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions