netvsc: fix rcu dereference warning from ethtool
authorstephen hemminger <stephen@networkplumber.org>
Wed, 7 Jun 2017 22:53:47 +0000 (15:53 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Jun 2017 15:45:48 +0000 (11:45 -0400)
commitfbd4c7e768f1719bea340e40148800279d230922
tree88aa286870d0f69cd7f269e7c866fc289897e38e
parent8397ed36b7c585f8d3e06c431f4137309124f78f
netvsc: fix rcu dereference warning from ethtool

The ethtool info command calls the netvsc get_sset_count with RTNL
but not with RCU. Which causes warning:

drivers/net/hyperv/netvsc_drv.c:1010 suspicious rcu_dereference_check() usage!

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