diff options
author | Haiyang Zhang <haiyangz@microsoft.com> | 2015-04-07 01:22:54 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-04-08 01:45:33 +0300 |
commit | ee90b81203a91d4e5385622811ee7872b5bcfe76 (patch) | |
tree | 50d211e19cbda5786e09ddcfe287da64d6d2c91a /drivers/net/hyperv/netvsc_drv.c | |
parent | 721514222db13498613706709409c21c105e0f4a (diff) | |
download | linux-ee90b81203a91d4e5385622811ee7872b5bcfe76.tar.xz |
hv_netvsc: Fix the packet free when it is in skb headroom
In the two places changed, we now use netvsc_xmit_completion() which properly
frees hv_netvsc_packet in or not in skb headroom.
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 'drivers/net/hyperv/netvsc_drv.c')
-rw-r--r-- | drivers/net/hyperv/netvsc_drv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hyperv/netvsc_drv.c index 73f8fba62a52..e5fa094e6fe2 100644 --- a/drivers/net/hyperv/netvsc_drv.c +++ b/drivers/net/hyperv/netvsc_drv.c @@ -229,7 +229,7 @@ static u16 netvsc_select_queue(struct net_device *ndev, struct sk_buff *skb, return q_idx; } -static void netvsc_xmit_completion(void *context) +void netvsc_xmit_completion(void *context) { struct hv_netvsc_packet *packet = (struct hv_netvsc_packet *)context; struct sk_buff *skb = (struct sk_buff *) |