netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 20/21] phonet: exit_net cleanup check added
@ 2017-11-05 10:02 Vasily Averin
  2017-11-05 10:17 ` Rémi Denis-Courmont
  2017-11-05 13:16 ` [PATCH 20/21] phonet: exit_net cleanup check added kbuild test robot
  0 siblings, 2 replies; 7+ messages in thread
From: Vasily Averin @ 2017-11-05 10:02 UTC (permalink / raw)
  To: netdev; +Cc: Remi Denis-Courmont

Be sure that pndevs.list initialized in net_init hook was return
to initial state.

Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
---
 net/phonet/pn_dev.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/net/phonet/pn_dev.c b/net/phonet/pn_dev.c
index 2cb4c5d..1024851 100644
--- a/net/phonet/pn_dev.c
+++ b/net/phonet/pn_dev.c
@@ -332,6 +332,8 @@ static int __net_init phonet_init_net(struct net *net)
 static void __net_exit phonet_exit_net(struct net *net)
 {
 	remove_proc_entry("phonet", net->proc_net);
+	WARN(!list_empty(&pnn->pndevs.list),
+	     "net %p exit: phonet pndevs.list is not empty\n", net);
 }
 
 static struct pernet_operations phonet_net_ops = {
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-11-06  0:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-05 10:02 [PATCH 20/21] phonet: exit_net cleanup check added Vasily Averin
2017-11-05 10:17 ` Rémi Denis-Courmont
2017-11-05 10:52   ` Vasily Averin
2017-11-05 12:48     ` David Miller
2017-11-05 20:56       ` How to identify net namespace in kernel messages? Vasily Averin
2017-11-06  0:21         ` David Ahern
2017-11-05 13:16 ` [PATCH 20/21] phonet: exit_net cleanup check added kbuild test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).