]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
hv_netvsc: reset vf_inject on VF removal
authorVitaly Kuznetsov <vkuznets@redhat.com>
Mon, 15 Aug 2016 15:48:41 +0000 (17:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Aug 2016 20:48:07 +0000 (13:48 -0700)
commit57c1826b991244d2144eb6e3d5d1b13a53cbea63
tree93cd1c7896df49a7e4b6ecfded73b984cc03e338
parentd072218f214929194db06069564495b6b9fff34a
hv_netvsc: reset vf_inject on VF removal

We reset vf_inject on VF going down (netvsc_vf_down()) but we don't on
VF removal (netvsc_unregister_vf()) so vf_inject stays 'true' while
vf_netdev is already NULL and we're trying to inject packets into NULL
net device in netvsc_recv_callback() causing kernel to crash.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Acked-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/netvsc_drv.c