netvsc: avoid race with callback
authorstephen hemminger <stephen@networkplumber.org>
Thu, 16 Mar 2017 23:12:37 +0000 (16:12 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Mar 2017 04:39:50 +0000 (21:39 -0700)
commit6de38af611ca81a970965c06231cd2d5f30b2566
treeae4d4f7d6917a8dc79e039ce6d5747f8da5890a2
parent3a70418b9c315ca4343d11a82bf1555043056d30
netvsc: avoid race with callback

Change the argument to channel callback from the channel pointer
to the internal data structure containing per-channel info.
This avoids any possible races when callback happens during
initialization and makes IRQ code simpler.

Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/netvsc.c
drivers/net/hyperv/rndis_filter.c