diff options
author | Felix Fietkau <nbd@nbd.name> | 2020-12-14 12:59:32 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2020-12-14 13:46:34 +0100 |
commit | 88c6003e2b4fdc0c990045ff140bf19b37ba745a (patch) | |
tree | c557a5e38a3cff58ffcc7c3c1ca9db707afbcc4a /vlandev.c | |
parent | 458b1a7e9473c150a40cae5d8be174f4bb03bd39 (diff) | |
download | netifd-88c6003e2b4fdc0c990045ff140bf19b37ba745a.tar.gz |
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>
Diffstat (limited to 'vlandev.c')
-rw-r--r-- | vlandev.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |