From: Patrick McHardy Date: Sun, 11 Nov 2007 05:51:40 +0000 (-0800) Subject: [VLAN]: Don't synchronize addresses while the vlan device is down X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d932e04a5e7b146c5f9bf517714b986a432a7594;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git [VLAN]: Don't synchronize addresses while the vlan device is down While the VLAN device is down, the unicast addresses are not configured on the underlying device, so we shouldn't attempt to sync them. Noticed by Dmitry Butskoy Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller --- diff --git a/net/8021q/vlan.c b/net/8021q/vlan.c index 1037748c14db..0fadbc6fbc3f 100644 --- a/net/8021q/vlan.c +++ b/net/8021q/vlan.c @@ -636,6 +636,10 @@ static int vlan_device_event(struct notifier_block *unused, unsigned long event, if (!vlandev) continue; + flgs = vlandev->flags; + if (!(flgs & IFF_UP)) + continue; + vlan_sync_address(dev, vlandev); } break;