]> git.baikalelectronics.ru Git - kernel.git/commit
hv_netvsc: disable NAPI before channel close
authorStephen Hemminger <stephen@networkplumber.org>
Tue, 20 Mar 2018 22:03:02 +0000 (15:03 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Mar 2018 16:45:09 +0000 (12:45 -0400)
commit0e4c0d0968c0fdc860abade0014bcd461ba4e1ae
tree2c4f7d3d8dcabc3c8ef6c643ee71c46665c26f98
parente75c4d289c7f7b86dbe36d8e792d3547668e0385
hv_netvsc: disable NAPI before channel close

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

Fixes: 4af0271664e5 ("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>
drivers/net/hyperv/netvsc.c