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>
This commit is contained in:
parent
ee0ab7a2b0
commit
663faeab5c
@ -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);
|
struct netns_pfkey *net_pfkey = net_generic(net, pfkey_net_id);
|
||||||
|
|
||||||
pfkey_exit_proc(net);
|
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 = {
|
static struct pernet_operations pfkey_net_ops = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user