[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <a86797d1-781b-9bd0-fd38-fa22e1a6d66e@virtuozzo.com>
Date: Sun, 5 Nov 2017 19:49:26 +0300
From: Vasily Averin <vvs@...tuozzo.com>
To: netdev@...r.kernel.org
Cc: linux-ppp@...r.kernel.org, Paul Mackerras <paulus@...ba.org>
Subject: [PATCH v2 02/21] 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 <vvs@...tuozzo.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
Powered by blists - more mailing lists