netvsc: need rcu_derefence when accessing internal device info
authorstephen hemminger <stephen@networkplumber.org>
Wed, 19 Jul 2017 18:53:17 +0000 (11:53 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Jul 2017 05:20:05 +0000 (22:20 -0700)
commit2a926f791211b40ba114f45e0e7bfefd2fac5d30
tree3cd3b15122daed0f09c4cbb410d580e7f1a34b6b
parent9749fed5d43d84b86f1c98b70167c31c296bb6a6
netvsc: need rcu_derefence when accessing internal device info

The netvsc_device structure should be accessed by rcu_dereference
in the send path.  Change arguments to netvsc_send() to make
this easier to do correctly.

Remove no longer needed hv_device_to_netvsc_device.

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