From: Vasily Averin Date: Sun, 12 Nov 2017 19:26:53 +0000 (+0300) Subject: af_key: replace BUG_ON on WARN_ON in net_exit hook X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=663faeab5c7e205160f9dbeb9a699c5dbdb78ce2;p=openwrt%2Fstaging%2Fblogic.git af_key: replace BUG_ON on WARN_ON in net_exit hook Signed-off-by: Vasily Averin Signed-off-by: David S. Miller --- 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 = {