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

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

ppp: exit_net cleanup checks added



Be sure that lists initialized in net_init hook were return
to initial state.

Signed-off-by: default avatarVasily Averin <vvs@virtuozzo.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ae61e8cd
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -962,6 +962,8 @@ static __net_exit void ppp_exit_net(struct net *net)

	mutex_destroy(&pn->all_ppp_mutex);
	idr_destroy(&pn->units_idr);
	WARN_ON_ONCE(!list_empty(&pn->all_channels));
	WARN_ON_ONCE(!list_empty(&pn->new_channels));
}

static struct pernet_operations ppp_net_ops = {