Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ab384b63 authored by Vasily Averin's avatar Vasily Averin Committed by David S. Miller
Browse files

geneve: exit_net cleanup check added



Be sure that sock_list initialized in net_init hook was return
to initial state.

Signed-off-by: default avatarVasily Averin <vvs@virtuozzo.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 663faeab
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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 = {