hv_netvsc: disable NAPI before channel close
authorStephen Hemminger <stephen@networkplumber.org>
Mon, 14 May 2018 22:32:15 +0000 (15:32 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 May 2018 14:17:29 +0000 (16:17 +0200)
commit1f3ef8a7a3c667f72bcb20be61ec4b4214f355b2
tree8a30eeb128d57465c7ba81ffe2c161c47ab10915
parentf9aab25e3326842b1986ecbad2af51a75c0dd646
hv_netvsc: disable NAPI before channel close

[ Commit 8348e0460ab1473f06c8b824699dd2eed3c1979d upstream. ]

This makes sure that no CPU is still process packets when
the channel is closed.

Fixes: 76bb5db5c749 ("netvsc: fix use after free on module removal")
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/hyperv/netvsc.c