[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <be58733f-e5cb-a57b-a079-734dd9c28a55@virtuozzo.com>
Date: Mon, 6 Nov 2017 16:25:46 +0300
From: Vasily Averin <vvs@...tuozzo.com>
To: netdev@...r.kernel.org
Subject: [PATCH v3 19/21] packet: exit_net cleanup check added
Be sure that packet.sklist initialized in net_init hook was return
to initial state.
Signed-off-by: Vasily Averin <vvs@...tuozzo.com>
---
net/packet/af_packet.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c
index bec01a3..cdd4ce6 100644
--- a/net/packet/af_packet.c
+++ b/net/packet/af_packet.c
@@ -4562,6 +4562,8 @@ static int __net_init packet_net_init(struct net *net)
static void __net_exit packet_net_exit(struct net *net)
{
remove_proc_entry("packet", net->proc_net);
+ WARN_ONCE(!hlist_empty(&net->packet.sklist),
+ "net %x %s: sklist is not empty\n", net->ns.inum, __func__);
}
static struct pernet_operations packet_net_ops = {
--
2.7.4
Powered by blists - more mailing lists