diff options
| author | 2019-06-13 17:12:30 +0800 | |
|---|---|---|
| committer | 2019-06-14 19:26:16 -0700 | |
| commit | 8f9eed1a8791b83eb1c54c261d68424717e4111e (patch) | |
| tree | 86b6eef3cccc8c0eef2ec449bb84d2ebea9cc3e1 /include/linux/stacktrace.h | |
| parent | net: hns3: fix for dereferencing before null checking (diff) | |
net: hns3: fix for skb leak when doing selftest
If hns3_nic_net_xmit does not return NETDEV_TX_BUSY when doing
a loopback selftest, the skb is not freed in hns3_clean_tx_ring
or hns3_nic_net_xmit, which causes skb not freed problem.
This patch fixes it by freeing skb when hns3_nic_net_xmit does
not return NETDEV_TX_OK.
Fixes: c39c4d98dc65 ("net: hns3: Add mac loopback selftest support in hns3 driver")
Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/stacktrace.h')
0 files changed, 0 insertions, 0 deletions
