hv_netvsc: fix locking during VF setup
authorStephen Hemminger <stephen@networkplumber.org>
Wed, 7 Mar 2018 21:49:12 +0000 (13:49 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 May 2018 05:52:13 +0000 (07:52 +0200)
commitb7f1129a2c77f1dacd413a822fec90e2922855f8
treee400a71a2be33d26c47f14dc08ce1a1952fcbb20
parentb37bc05f44c6b4b7cb25583f8c5c85b81d6eb9e0
hv_netvsc: fix locking during VF setup

[ Upstream commit b0dee7910317f41f398838992516af6a3b981d86 ]

The dev_uc/mc_sync calls need to have the device address list
locked. This was spotted by running with lockdep enabled.

Fixes: bee9d41b37ea ("hv_netvsc: propagate rx filters to VF")
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/hyperv/netvsc_drv.c