]> git.baikalelectronics.ru Git - kernel.git/commit
hv_netvsc: Fix book keeping of skb during batching process
authorHaiyang Zhang <haiyangz@microsoft.com>
Mon, 25 Jan 2016 17:49:31 +0000 (09:49 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Jan 2016 18:51:53 +0000 (10:51 -0800)
commit66cdf222cd8163a544b4ee468efcaf5d3f489fc5
tree1c7fe6024c71a212c6c71d45ed695b842b8357eb
parent990799e243f0b53b782c9cd8e06eba3abe119cf1
hv_netvsc: Fix book keeping of skb during batching process

Since eliminating send_completion_tid from struct hv_netvsc_packet, we
haven't add proper book keeping for the skb of the batched packet. This
patch fixes this issue and allows the previous skb is properly freed.
Otherwise, a panic may happen.
Thanks to Simon Xiao <sixiao@microsoft.com> for bisecting and analysis.

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/hyperv_net.h
drivers/net/hyperv/netvsc.c