[VLAN]: Don't synchronize addresses while the vlan device is down
[cascardo/linux.git] / net / 8021q / vlan.c
index 1037748..0fadbc6 100644 (file)
@@ -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;