Browse Source

netifd: fix a typo in vlandev hotplug support

Need to check the type of the vlan device, not the underlying device

Signed-off-by: Felix Fietkau <nbd@nbd.name>
Felix Fietkau 3 years ago
parent
commit
88c6003e2b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      vlandev.c

+ 1 - 1
vlandev.c

@@ -112,7 +112,7 @@ static void vlandev_hotplug_check(struct vlandev_device *mvdev)
 	struct device *dev = mvdev->parent.dev;
 
 	if (!dev || !dev->hotplug_ops || avl_is_empty(&dev->vlans.avl) ||
-		dev->type != &vlan8021q_device_type) {
+		mvdev->dev.type != &vlan8021q_device_type) {
 		mvdev->dev.hotplug_ops = NULL;
 		return;
 	}