netvsc: fix hang on netvsc module removal
authorstephen hemminger <stephen@networkplumber.org>
Thu, 9 Mar 2017 23:04:15 +0000 (15:04 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Mar 2017 06:15:43 +0000 (23:15 -0700)
commit79cd874c96b38694fb2b4ee3850f6fbbc3015439
tree1ced2db009d3dd2aabd1ce674878882d75a95bfb
parent0d6dd35784e76bc3e052ffa13c6839d5c9bcb449
netvsc: fix hang on netvsc module removal

The code in netvsc_device_remove was incorrectly calling napi_disable
repeatedly on the same element. This would cause attempts
to remove netvsc module to hang.

Fixes: 2506b1dc4bbe ("netvsc: implement NAPI")
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/netvsc.c