]> git.proxmox.com Git - mirror_ubuntu-zesty-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)
committerKamal Mostafa <kamal@canonical.com>
Wed, 13 Jul 2016 15:58:25 +0000 (08:58 -0700)
commite8b4250b7e9c6e2a39ab10a4632c4c3b7e024aeb
tree2d67a256c3fc49d778ee74c1b3cc4af2a925ff1b
parentf880fd2a866c07187472d9d9b83bded7eef37640
hv_netvsc: Fix book keeping of skb during batching process

BugLink: http://bugs.launchpad.net/bugs/1583357
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>
(cherry picked from commit c85e4924452ae8225c8829f3fa8a2f7baa34bc5c)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Acked-by: Brad Figg <brad.figg@canonical.com>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
drivers/net/hyperv/hyperv_net.h
drivers/net/hyperv/netvsc.c