diff options
-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 6a2c15f4..b41f0ac8 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(); |