Re: [PATCH net] l2tp: check ps->sock before running pppol2tp_session_ioctl()

2017-10-14 Thread David Miller
From: Guillaume Nault Date: Fri, 13 Oct 2017 19:22:35 +0200 > When pppol2tp_session_ioctl() is called by pppol2tp_tunnel_ioctl(), > the session may be unconnected. That is, it was created by > pppol2tp_session_create() and hasn't been connected with > pppol2tp_connect(). In

[PATCH net] l2tp: check ps->sock before running pppol2tp_session_ioctl()

2017-10-13 Thread Guillaume Nault
When pppol2tp_session_ioctl() is called by pppol2tp_tunnel_ioctl(), the session may be unconnected. That is, it was created by pppol2tp_session_create() and hasn't been connected with pppol2tp_connect(). In this case, ps->sock is NULL, so we need to check for this case in order to avoid