summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2016-04-04 18:14:06 +0300
committerDmitry Kozlov <xeb@mail.ru>2016-04-04 18:14:06 +0300
commitab60c94cfc3bc23d96bf958d428b9f7a02a132d1 (patch)
tree175ecfbd63233e0a9ca82764de80d396064d03f4 /drivers
parent38277ffc234acaae8fa0d2832cc7ce5b05c32395 (diff)
downloadaccel-ppp-ab60c94cfc3bc23d96bf958d428b9f7a02a132d1.tar.gz
accel-ppp-ab60c94cfc3bc23d96bf958d428b9f7a02a132d1.zip
vlan_mon: fixed bug
Diffstat (limited to 'drivers')
-rw-r--r--drivers/vlan_mon/vlan_mon.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/vlan_mon/vlan_mon.c b/drivers/vlan_mon/vlan_mon.c
index f0f2f8b2..6a2c15f4 100644
--- a/drivers/vlan_mon/vlan_mon.c
+++ b/drivers/vlan_mon/vlan_mon.c
@@ -547,14 +547,14 @@ static int vlan_mon_nl_cmd_del_vlan_mon(struct sk_buff *skb, struct genl_info *i
if (!d->proto)
rcu_assign_pointer(dev->ml_priv, NULL);
}
+
+ if (!d->proto && autoclean)
+ vlan_dev_clean(d, dev, &list_kill);
}
if (!d->proto) {
list_del(&d->entry);
kfree_rcu(d, rcu_head);
-
- if (ifindex == -1 && autoclean)
- vlan_dev_clean(d, dev, &list_kill);
}
}
}