af_key: replace BUG_ON on WARN_ON in net_exit hook
authorVasily Averin <vvs@virtuozzo.com>
Sun, 12 Nov 2017 19:26:53 +0000 (22:26 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Nov 2017 06:45:52 +0000 (15:45 +0900)
Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/key/af_key.c

index a00d607e7224d422e6f3ae3b139bee9706852d7b..3dffb892d52cf191f53e282bff9fb65594605476 100644 (file)
@@ -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 = {