OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e4ec5a
)
netdev: exit_net cleanup check added
author
Vasily Averin
<vvs@virtuozzo.com>
Sun, 12 Nov 2017 19:28:46 +0000
(22:28 +0300)
committer
David S. Miller
<davem@davemloft.net>
Tue, 14 Nov 2017 06:45:53 +0000
(15:45 +0900)
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>
net/core/dev.c
patch
|
blob
|
history
diff --git
a/net/core/dev.c
b/net/core/dev.c
index
30b5fe3
..
658337b
100644
(file)
--- a/
net/core/dev.c
+++ b/
net/core/dev.c
@@
-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 = {