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

netdev: exit_net cleanup check added

Be sure that dev_base_head list initialized in net_init hook was return
to initial state
Signed-off-by: default avatarVasily Averin <[email protected]>
Signed-off-by: default avatarDavid S. Miller <dav[email protected]>
parent 0e4ec5ac
......@@ -8667,6 +8667,8 @@ static void __net_exit netdev_exit(struct net *net)
{
kfree(net->dev_name_head);
kfree(net->dev_index_head);
if (net != &init_net)
WARN_ON_ONCE(!list_empty(&net->dev_base_head));
}
static struct pernet_operations __net_initdata netdev_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