diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2016-04-04 21:43:54 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2016-04-04 21:58:08 +0300 |
commit | deabfa46fbda30773b143428fc5f885265bb45c7 (patch) | |
tree | 30be36ee22e6dd4f0f56028685ce815e4cadcaa4 /drivers | |
parent | ab60c94cfc3bc23d96bf958d428b9f7a02a132d1 (diff) | |
download | accel-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.c | 6 |
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(); |