linux/net/l2tp
Guillaume Nault da9ca825ef l2tp: remove the .tunnel_sock field from struct pppol2tp_session
The last user of .tunnel_sock is pppol2tp_connect() which defensively
uses it to verify internal data consistency.

This check isn't necessary: l2tp_session_get() guarantees that the
returned session belongs to the tunnel passed as parameter. And
.tunnel_sock is never updated, so checking that it still points to
the parent tunnel socket is useless; that test can never fail.

Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-11-11 22:08:23 +09:00
..
Kconfig l2tp: Call udp_sock_create 2014-07-14 16:12:15 -07:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
l2tp_core.c l2tp: don't close sessions in l2tp_tunnel_destruct() 2017-11-11 19:05:17 +09:00
l2tp_core.h l2tp: remove l2tp specific refcount debugging 2017-11-01 10:57:24 +09:00
l2tp_debugfs.c l2tp: remove ->ref() and ->deref() 2017-11-01 10:57:24 +09:00
l2tp_eth.c l2tp: remove .tunnel_sock from struct l2tp_eth 2017-11-11 22:08:23 +09:00
l2tp_ip.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2017-11-10 10:00:18 +09:00
l2tp_ip6.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2017-11-10 10:00:18 +09:00
l2tp_netlink.c l2tp: remove ->ref() and ->deref() 2017-11-01 10:57:24 +09:00
l2tp_ppp.c l2tp: remove the .tunnel_sock field from struct pppol2tp_session 2017-11-11 22:08:23 +09:00