linux/drivers/net/hyperv
Vitaly Kuznetsov 1bdcec8a5f hv_netvsc: use start_remove flag to protect netvsc_link_change()
netvsc_link_change() can race with netvsc_change_mtu() or
netvsc_set_channels() as these functions destroy struct netvsc_device and
rndis filter. Use start_remove flag for syncronization. As
netvsc_change_mtu()/netvsc_set_channels() are called with rtnl lock held
we need to take it before checking start_remove value in
netvsc_link_change().

Reported-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-05-16 13:26:00 -04:00
..
hyperv_net.h hv_netvsc: move start_remove flag to net_device_context 2016-05-16 13:26:00 -04:00
Kconfig
Makefile
netvsc_drv.c hv_netvsc: use start_remove flag to protect netvsc_link_change() 2016-05-16 13:26:00 -04:00
netvsc.c hv_netvsc: move start_remove flag to net_device_context 2016-05-16 13:26:00 -04:00
rndis_filter.c hv_netvsc: Implement support for VF drivers on Hyper-V 2016-04-18 14:51:47 -04:00