summaryrefslogtreecommitdiff
path: root/vlandev.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2020-12-14 12:59:32 +0100
committerFelix Fietkau <nbd@nbd.name>2020-12-14 13:46:34 +0100
commit88c6003e2b4fdc0c990045ff140bf19b37ba745a (patch)
treec557a5e38a3cff58ffcc7c3c1ca9db707afbcc4a /vlandev.c
parent458b1a7e9473c150a40cae5d8be174f4bb03bd39 (diff)
downloadnetifd-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vlandev.c b/vlandev.c
index 2f86192..f2440a7 100644
--- a/vlandev.c
+++ b/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;
}