[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <f5933e85-f501-a562-877e-dc57d3c92d55@virtuozzo.com>
Date: Mon, 6 Nov 2017 16:25:01 +0300
From: Vasily Averin <vvs@...tuozzo.com>
To: netdev@...r.kernel.org
Cc: Steffen Klassert <steffen.klassert@...unet.com>,
Herbert Xu <herbert@...dor.apana.org.au>
Subject: [PATCH v3 13/21] af_key: replace BUG_ON on WARN_ONCE in net_exit hook
Signed-off-by: Vasily Averin <vvs@...tuozzo.com>
---
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
Powered by blists - more mailing lists