mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 21:54:34 -04:00
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: Vasily Averin <vvs@virtuozzo.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
0e4ec5acad
commit
ee21b18b6b
1 changed files with 2 additions and 0 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue