Thread (83 messages) flat view 83 messages, 9 authors, 2017-11-14
STALE3197d

[PATCH v3 13/21] af_key: replace BUG_ON on WARN_ONCE in net_exit hook

From: Vasily Averin <hidden>
Date: 2017-11-06 13:25:07
Subsystem: networking [general], networking [ipsec], the rest · Maintainers: "David S. Miller", Eric Dumazet, Jakub Kicinski, Paolo Abeni, Steffen Klassert, Herbert Xu, Linus Torvalds

Signed-off-by: Vasily Averin <redacted>
---
 net/key/af_key.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/net/key/af_key.c b/net/key/af_key.c
index a00d607..61d1b58 100644
--- a/net/key/af_key.c
+++ b/net/key/af_key.c
@@ -3845,7 +3845,9 @@ static void __net_exit pfkey_net_exit(struct net *net)
 	struct netns_pfkey *net_pfkey = net_generic(net, pfkey_net_id);
 
 	pfkey_exit_proc(net);
-	BUG_ON(!hlist_empty(&net_pfkey->table));
+	WARN_ONCE(!hlist_empty(&net_pfkey->table),
+		  "net %x %s table hlist is not empty\n",
+		  net->ns.inum, __func__);
 }
 
 static struct pernet_operations pfkey_net_ops = {
-- 
2.7.4
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help