diff options
author | Vasily Averin <vvs@virtuozzo.com> | 2017-11-12 22:27:19 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-14 15:45:52 +0900 |
commit | ab384b63c76679712edf2578930a238329aa41a9 (patch) | |
tree | e6fcd75a1bbaf610f6f9e9218bfa16af398e31e9 /drivers | |
parent | 663faeab5c7e205160f9dbeb9a699c5dbdb78ce2 (diff) | |
download | op-kernel-dev-ab384b63c76679712edf2578930a238329aa41a9.zip op-kernel-dev-ab384b63c76679712edf2578930a238329aa41a9.tar.gz |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/geneve.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/geneve.c b/drivers/net/geneve.c index 5ec39f1..688906a 100644 --- 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 = { |