aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorYunsheng Lin <[email protected]>2019-06-13 17:12:30 +0800
committerDavid S. Miller <[email protected]>2019-06-14 19:26:16 -0700
commit8f9eed1a8791b83eb1c54c261d68424717e4111e (patch)
tree86b6eef3cccc8c0eef2ec449bb84d2ebea9cc3e1 /tools/perf/scripts/python/bin
parent757188005f905664b0186b88cf26a7e844190a63 (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 <[email protected]> Signed-off-by: Peng Li <[email protected]> Signed-off-by: Huazhong Tan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions