Commit ae61e8cd authored by Vasily Averin's avatar Vasily Averin Committed by David S. Miller

phonet: exit_net cleanup check added

Be sure that pndevs.list initialized in net_init hook was return
to initial state.
Signed-off-by: default avatarVasily Averin <vvs@virtuozzo.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1e7af3b2
...@@ -331,7 +331,10 @@ static int __net_init phonet_init_net(struct net *net) ...@@ -331,7 +331,10 @@ static int __net_init phonet_init_net(struct net *net)
static void __net_exit phonet_exit_net(struct net *net) static void __net_exit phonet_exit_net(struct net *net)
{ {
struct phonet_net *pnn = phonet_pernet(net);
remove_proc_entry("phonet", net->proc_net); remove_proc_entry("phonet", net->proc_net);
WARN_ON_ONCE(!list_empty(&pnn->pndevs.list));
} }
static struct pernet_operations phonet_net_ops = { static struct pernet_operations phonet_net_ops = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment