summaryrefslogtreecommitdiffstats
path: root/drivers/net/hyperv/netvsc_drv.c
diff options
context:
space:
mode:
authorstephen hemminger <stephen@networkplumber.org>2017-07-19 20:53:19 +0200
committerDavid S. Miller <davem@davemloft.net>2017-07-20 07:20:05 +0200
commit3962981f4822aaf284234efd0500041417faea86 (patch)
tree6a381394e3fc59e48bd531f3afd1ebb8f34d47a5 /drivers/net/hyperv/netvsc_drv.c
parentnetvsc: save pointer to parent netvsc_device in channel table (diff)
downloadlinux-3962981f4822aaf284234efd0500041417faea86.tar.xz
linux-3962981f4822aaf284234efd0500041417faea86.zip
netvsc: add rtnl annotations in rndis
The rndis functions are used when changing device state. Therefore the references from network device to internal state are protected by RTNL mutex. Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/hyperv/netvsc_drv.c')
-rw-r--r--drivers/net/hyperv/netvsc_drv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hyperv/netvsc_drv.c
index 1238600d717e..a164981c15f7 100644
--- a/drivers/net/hyperv/netvsc_drv.c
+++ b/drivers/net/hyperv/netvsc_drv.c
@@ -1548,6 +1548,7 @@ static int netvsc_probe(struct hv_device *dev,
netif_set_real_num_tx_queues(net, nvdev->num_chn);
netif_set_real_num_rx_queues(net, nvdev->num_chn);
+ rtnl_unlock();
netdev_lockdep_set_classes(net);