Be sure that sock_list array initialized in net_init hook was return
to initial state
Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
        struct vxlan_net *vn = net_generic(net, vxlan_net_id);
        struct vxlan_dev *vxlan, *next;
        struct net_device *dev, *aux;
+       unsigned int h;
        LIST_HEAD(list);
 
        rtnl_lock();
 
        unregister_netdevice_many(&list);
        rtnl_unlock();
+
+       for (h = 0; h < PORT_HASH_SIZE; ++h)
+               WARN_ON_ONCE(!hlist_empty(&vn->sock_list[h]));
 }
 
 static struct pernet_operations vxlan_net_ops = {