]> www.infradead.org Git - users/jedix/linux-maple.git/commit
hv_netvsc: Wait for sub-channels to be processed during probe
authorKY Srinivasan <kys@microsoft.com>
Wed, 22 Jul 2015 18:42:32 +0000 (11:42 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 26 Feb 2016 02:28:56 +0000 (18:28 -0800)
commit7594a0f1c7fa50e5d82d8d833a8c7a28235b9783
treeefbccb692328d1b082b95bb7ddbe08c651e0ac93
parentbb9ad33428beed333530aaa06d623d976d2b4b96
hv_netvsc: Wait for sub-channels to be processed during probe

The current code returns from probe without waiting for the proper handling
of subchannels that may be requested. If the netvsc driver were to be rapidly
loaded/unloaded, we can  trigger a panic as the unload will be tearing
down state that may not have been fully setup yet. We fix this issue by making
sure that we return from the probe call only after ensuring that the
sub-channel offers in flight are properly handled.

Reviewed-and-tested-by: Haiyang Zhang <haiyangz@microsoft.com
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit b3e6b82a0099dfef038e40c630a554ed1e402504)

Orabug: 21886720
Signed-off-by: Jason Luo <zhangqing.luo@oracle.com>
drivers/net/hyperv/hyperv_net.h
drivers/net/hyperv/rndis_filter.c