[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <d0feab82-a190-a254-1871-3fe394b486d0@virtuozzo.com>
Date: Sun, 5 Nov 2017 19:49:18 +0300
From: Vasily Averin <vvs@...tuozzo.com>
To: netdev@...r.kernel.org
Subject: [PATCH v2 01/21] exit_net cleanup: geneve sock_list check
Be sure that sock_list initialized in net_init hook was return
to initial state.
Signed-off-by: Vasily Averin <vvs@...tuozzo.com>
---
drivers/net/geneve.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/geneve.c b/drivers/net/geneve.c
index f640407..dece711 100644
--- a/drivers/net/geneve.c
+++ b/drivers/net/geneve.c
@@ -1673,6 +1673,8 @@ static void __net_exit geneve_exit_net(struct net *net)
/* unregister the devices gathered above */
unregister_netdevice_many(&list);
rtnl_unlock();
+ WARN(!list_empty(&gn->sock_list),
+ "&s: sock_list is not empty\n", __func__);
}
static struct pernet_operations geneve_net_ops = {
--
2.7.4
Powered by blists - more mailing lists