]> git.baikalelectronics.ru Git - kernel.git/commit
hyperv: Fix the error processing in netvsc_send()
authorHaiyang Zhang <haiyangz@microsoft.com>
Thu, 29 Jan 2015 20:34:49 +0000 (12:34 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Feb 2015 01:31:49 +0000 (17:31 -0800)
commita377d2b81e7cc03ebce8f986bfe81765146847b4
tree34a8edb843776b391f51fa844955d2b65ba6d712
parent9055eee0d05b4848135caee1ab7ebd14d8273714
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>
drivers/net/hyperv/netvsc.c