diff options
| author | 2022-10-28 10:09:11 +0800 | |
|---|---|---|
| committer | 2022-10-31 09:22:32 +0000 | |
| commit | 06a4df5863f73af193a4ff7abf7cb04058584f06 (patch) | |
| tree | 7d44adb7ab7ccccfdd03d58bb6ccb2c1f4fdda3a /tools/scripts/ssh:/git@git.zx2c4.com/git:/git.zx2c4.com | |
| parent | Merge branch 'nfc-skb-leaks' (diff) | |
| download | linux-dev-06a4df5863f73af193a4ff7abf7cb04058584f06.tar.xz linux-dev-06a4df5863f73af193a4ff7abf7cb04058584f06.zip | |
net: fec: fix improper use of NETDEV_TX_BUSY
The ndo_start_xmit() method must not free skb when returning
NETDEV_TX_BUSY, since caller is going to requeue freed skb.
Fix it by returning NETDEV_TX_OK in case of dma_map_single() fails.
Fixes: 79f339125ea3 ("net: fec: Add software TSO support")
Signed-off-by: Zhang Changzhong <zhangchangzhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/scripts/ssh:/git@git.zx2c4.com/git:/git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
