Skip to content

Commit e667500

Browse files
vaverindavem330
authored andcommitted
ppp: exit_net cleanup checks added
Be sure that lists initialized in net_init hook were return to initial state. Signed-off-by: Vasily Averin <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent ae61e8c commit e667500

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/ppp/ppp_generic.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -962,6 +962,8 @@ static __net_exit void ppp_exit_net(struct net *net)
962962

963963
mutex_destroy(&pn->all_ppp_mutex);
964964
idr_destroy(&pn->units_idr);
965+
WARN_ON_ONCE(!list_empty(&pn->all_channels));
966+
WARN_ON_ONCE(!list_empty(&pn->new_channels));
965967
}
966968

967969
static struct pernet_operations ppp_net_ops = {

0 commit comments

Comments
 (0)