summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorVasily Averin <vvs@virtuozzo.com>2017-11-12 22:26:53 +0300
committerDavid S. Miller <davem@davemloft.net>2017-11-14 15:45:52 +0900
commit663faeab5c7e205160f9dbeb9a699c5dbdb78ce2 (patch)
treeefa3474a6131abe77888a84ad5ce4de63400c52a /net
parentee0ab7a2b00fdb65e50ed9e252900b29c8fd802f (diff)
downloadlinux-663faeab5c7e205160f9dbeb9a699c5dbdb78ce2.tar.bz2
af_key: replace BUG_ON on WARN_ON in net_exit hook
Signed-off-by: Vasily Averin <vvs@virtuozzo.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/key/af_key.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/key/af_key.c b/net/key/af_key.c
index a00d607e7224..3dffb892d52c 100644
--- a/net/key/af_key.c
+++ b/net/key/af_key.c
@@ -3845,7 +3845,7 @@ 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_ON(!hlist_empty(&net_pfkey->table));
}
static struct pernet_operations pfkey_net_ops = {