projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
663faea
)
geneve: exit_net cleanup check added
author
Vasily Averin
<vvs@virtuozzo.com>
Sun, 12 Nov 2017 19:27:19 +0000
(22:27 +0300)
committer
David S. Miller
<davem@davemloft.net>
Tue, 14 Nov 2017 06:45:52 +0000
(15:45 +0900)
Be sure that sock_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>
drivers/net/geneve.c
patch
|
blob
|
history
diff --git
a/drivers/net/geneve.c
b/drivers/net/geneve.c
index
5ec39f1
..
688906a
100644
(file)
--- a/
drivers/net/geneve.c
+++ b/
drivers/net/geneve.c
@@
-1654,6
+1654,7
@@
static void __net_exit geneve_exit_net(struct net *net)
/* unregister the devices gathered above */
unregister_netdevice_many(&list);
rtnl_unlock();
+ WARN_ON_ONCE(!list_empty(&gn->sock_list));
}
static struct pernet_operations geneve_net_ops = {