Skip to content

Commit

Permalink
af_key: replace BUG_ON on WARN_ON in net_exit hook
Browse files Browse the repository at this point in the history
Signed-off-by: Vasily Averin <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
vaverin authored and davem330 committed Nov 14, 2017
1 parent ee0ab7a commit 663faea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/key/af_key.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 663faea

Please sign in to comment.