diff options
author | Haiyang Zhang <haiyangz@microsoft.com> | 2015-01-29 12:34:49 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-01-31 17:31:49 -0800 |
commit | d953ca4ddf71aa91a4596b2ff7ff1598f6ad4708 (patch) | |
tree | 34a8edb843776b391f51fa844955d2b65ba6d712 /include/net | |
parent | ecf6ba83d76e0c78e89401750dc527008e14faa2 (diff) | |
download | linux-d953ca4ddf71aa91a4596b2ff7ff1598f6ad4708.tar.gz linux-d953ca4ddf71aa91a4596b2ff7ff1598f6ad4708.tar.bz2 linux-d953ca4ddf71aa91a4596b2ff7ff1598f6ad4708.zip |
hyperv: Fix the error processing in netvsc_send()
The existing code frees the skb in EAGAIN case, in which the skb will be
retried from upper layer and used again.
Also, the existing code doesn't free send buffer slot in error case, because
there is no completion message for unsent packets.
This patch fixes these problems.
(Please also include this patch for stable trees. Thanks!)
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Reviewed-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
0 files changed, 0 insertions, 0 deletions