Skip to content

Commit 663faea

Browse files
vaverindavem330
authored andcommitted
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>
1 parent ee0ab7a commit 663faea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/key/af_key.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3845,7 +3845,7 @@ static void __net_exit pfkey_net_exit(struct net *net)
38453845
struct netns_pfkey *net_pfkey = net_generic(net, pfkey_net_id);
38463846

38473847
pfkey_exit_proc(net);
3848-
BUG_ON(!hlist_empty(&net_pfkey->table));
3848+
WARN_ON(!hlist_empty(&net_pfkey->table));
38493849
}
38503850

38513851
static struct pernet_operations pfkey_net_ops = {

0 commit comments

Comments
 (0)