commit | 1ac03c4b21aa3a177128785cc08ca1127390be05 | [log] [tgz] |
---|---|---|
author | Yunjian Wang <wangyunjian@huawei.com> | Tue May 05 10:49:20 2020 +0800 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Mon Jun 22 09:05:15 2020 +0200 |
tree | c1c7a22d26cead94bdf3ec436519e98be89c79e1 | |
parent | 26311fa940bb07c553aa1c60244ef9ca6883cf87 [diff] |
net: allwinner: Fix use correct return type for ndo_start_xmit() [ Upstream commit 09f6c44aaae0f1bdb8b983d7762676d5018c53bc ] The method ndo_start_xmit() returns a value of type netdev_tx_t. Fix the ndo function to use the correct type. And emac_start_xmit() can leak one skb if 'channel' == 3. Signed-off-by: Yunjian Wang <wangyunjian@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>