Skip to content

Commit

Permalink
ppp: exit_net cleanup checks added
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
vaverin authored and davem330 committed Nov 14, 2017
1 parent ae61e8c commit e667500
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/ppp/ppp_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit e667500

Please sign in to comment.