Re: [PATCH net] l2tp: take reference on sessions being dumped

2017-04-04 Thread David Miller
From: Guillaume Nault Date: Mon, 3 Apr 2017 12:03:13 +0200 > Take a reference on the sessions returned by l2tp_session_find_nth() > (and rename it l2tp_session_get_nth() to reflect this change), so that > caller is assured that the session isn't going to disappear while > processing it. > > For

[PATCH net] l2tp: take reference on sessions being dumped

2017-04-03 Thread Guillaume Nault
Take a reference on the sessions returned by l2tp_session_find_nth() (and rename it l2tp_session_get_nth() to reflect this change), so that caller is assured that the session isn't going to disappear while processing it. For procfs and debugfs handlers, the session is held in the .start() callback