hv_netvsc: cancel subchannel setup before halting device
authorStephen Hemminger <stephen@networkplumber.org>
Mon, 14 May 2018 22:32:12 +0000 (15:32 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 May 2018 14:17:28 +0000 (16:17 +0200)
commit99e06589bd5d6631bbea0a5128257bf16dabac9b
tree2c2c12c69029b5b59cc341b264bbe0c3645d4923
parent0ed8945b3aa627ef8ec9dda6442b02c91f27bfb4
hv_netvsc: cancel subchannel setup before halting device

[ Commit a7483ec0267c69b34e818738da60b392623da94b upstream. ]

Block setup of multiple channels earlier in the teardown
process. This avoids possible races between halt and subchannel
initialization.

Suggested-by: Haiyang Zhang <haiyangz@microsoft.com>
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/rndis_filter.c