summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2016-04-04 21:43:54 +0300
committerDmitry Kozlov <xeb@mail.ru>2016-04-04 21:58:08 +0300
commitdeabfa46fbda30773b143428fc5f885265bb45c7 (patch)
tree30be36ee22e6dd4f0f56028685ce815e4cadcaa4 /drivers
parentab60c94cfc3bc23d96bf958d428b9f7a02a132d1 (diff)
downloadaccel-ppp-deabfa46fbda30773b143428fc5f885265bb45c7.tar.gz
accel-ppp-deabfa46fbda30773b143428fc5f885265bb45c7.zip
vlan_mon: fixed panic on latest kernels
Diffstat (limited to 'drivers')
-rw-r--r--drivers/vlan_mon/vlan_mon.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/vlan_mon/vlan_mon.c b/drivers/vlan_mon/vlan_mon.c
index 6a2c15f..b41f0ac 100644
--- a/drivers/vlan_mon/vlan_mon.c
+++ b/drivers/vlan_mon/vlan_mon.c
@@ -562,7 +562,8 @@ static int vlan_mon_nl_cmd_del_vlan_mon(struct sk_buff *skb, struct genl_info *i
if (!list_empty(&list_kill)) {
unregister_netdevice_many(&list_kill);
- list_del(&list_kill);
+ if (list_kill.next != LIST_POISON1)
+ list_del(&list_kill);
}
rtnl_unlock();
@@ -762,7 +763,8 @@ static void __exit vlan_mon_fini(void)
if (!list_empty(&list_kill)) {
unregister_netdevice_many(&list_kill);
- list_del(&list_kill);
+ if (list_kill.next != LIST_POISON1)
+ list_del(&list_kill);
}
rtnl_unlock();