original_kernel/net/l2tp
Guillaume Nault 5903f59493 l2tp: check ps->sock before running pppol2tp_session_ioctl()
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 dereferencing a NULL pointer.

Fixes: 309795f4be ("l2tp: Add netlink control API for L2TP")
Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-10-14 18:38:56 -07:00
..
Kconfig
Makefile
l2tp_core.c l2tp: fix race condition in l2tp_tunnel_delete 2017-09-26 10:24:34 -07:00
l2tp_core.h l2tp: fix race condition in l2tp_tunnel_delete 2017-09-26 10:24:34 -07:00
l2tp_debugfs.c
l2tp_eth.c l2tp: fix l2tp_eth module loading 2017-10-01 22:35:07 -07:00
l2tp_ip.c
l2tp_ip6.c
l2tp_netlink.c
l2tp_ppp.c l2tp: check ps->sock before running pppol2tp_session_ioctl() 2017-10-14 18:38:56 -07:00