* [PATCH v2 02/21] ppp: exit_net cleanup checks added
[not found] <bafb347d-e36e-8b2b-7646-afc458a7a32a@virtuozzo.com>
@ 2017-11-05 16:49 ` Vasily Averin
0 siblings, 0 replies; only message in thread
From: Vasily Averin @ 2017-11-05 16:49 UTC (permalink / raw)
To: netdev; +Cc: linux-ppp, Paul Mackerras
Be sure that lists initialized in net_init hook were return
to initial state.
Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
---
drivers/net/ppp/ppp_generic.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/net/ppp/ppp_generic.c b/drivers/net/ppp/ppp_generic.c
index e365866..10cee62 100644
--- a/drivers/net/ppp/ppp_generic.c
+++ b/drivers/net/ppp/ppp_generic.c
@@ -960,6 +960,10 @@ static __net_exit void ppp_exit_net(struct net *net)
rtnl_unlock();
idr_destroy(&pn->units_idr);
+ WARN(!list_empty(&pn->all_channels),
+ "%s: all_channels list is not empty\n", __func__);
+ WARN(!list_empty(&pn->new_channels),
+ "%s: new_channels list is not empty\n", __func__);
}
static struct pernet_operations ppp_net_ops = {
--
2.7.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-11-05 16:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bafb347d-e36e-8b2b-7646-afc458a7a32a@virtuozzo.com>
2017-11-05 16:49 ` [PATCH v2 02/21] ppp: exit_net cleanup checks added Vasily Averin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).