mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 19:29:37 +00:00
geneve: exit_net cleanup check added
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>
This commit is contained in:
parent
663faeab5c
commit
ab384b63c7
1 changed files with 1 additions and 0 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue