From 88c6003e2b4fdc0c990045ff140bf19b37ba745a Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 14 Dec 2020 12:59:32 +0100 Subject: 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 --- vlandev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vlandev.c') 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; } -- cgit v1.2.1