linux_dsm_epyc7002/net/l2tp
Guillaume Nault bdd0292f96 l2tp: simplify pppol2tp_ioctl()
* Drop test on 'sk': sock->sk cannot be NULL, or pppox_ioctl() could
    not have called us.

  * Drop test on 'SOCK_DEAD' state: if this flag was set, the socket
    would be in the process of being released and no ioctl could be
    running anymore.

  * Drop test on 'PPPOX_*' state: we depend on ->sk_user_data to get
    the session structure. If it is non-NULL, then the socket is
    connected. Testing for PPPOX_* is redundant.

  * Retrieve session using ->sk_user_data directly, instead of going
    through pppol2tp_sock_to_session(). This avoids grabbing a useless
    reference on the socket.

Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-08-11 12:13:49 -07:00
..
Kconfig l2tp: Call udp_sock_create 2014-07-14 16:12:15 -07:00
l2tp_core.c l2tp: split l2tp_session_get() 2018-08-11 12:13:49 -07:00
l2tp_core.h l2tp: split l2tp_session_get() 2018-08-11 12:13:49 -07:00
l2tp_debugfs.c l2tp: ignore L2TP_ATTR_MTU 2018-08-03 10:03:57 -07:00
l2tp_eth.c l2tp: ignore L2TP_ATTR_MTU 2018-08-03 10:03:57 -07:00
l2tp_ip6.c l2tp: split l2tp_session_get() 2018-08-11 12:13:49 -07:00
l2tp_ip.c l2tp: split l2tp_session_get() 2018-08-11 12:13:49 -07:00
l2tp_netlink.c l2tp: split l2tp_session_get() 2018-08-11 12:13:49 -07:00
l2tp_ppp.c l2tp: simplify pppol2tp_ioctl() 2018-08-11 12:13:49 -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