linux/net/l2tp
Guillaume Nault e702c1204e l2tp: hold tunnel used while creating sessions with netlink
Use l2tp_tunnel_get() to retrieve tunnel, so that it can't go away on
us. Otherwise l2tp_tunnel_destruct() might release the last reference
count concurrently, thus freeing the tunnel while we're using it.

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-08-28 11:34:58 -07:00
..
Kconfig
l2tp_core.c l2tp: hold tunnel while looking up sessions in l2tp_netlink 2017-08-28 11:34:58 -07:00
l2tp_core.h l2tp: hold tunnel while looking up sessions in l2tp_netlink 2017-08-28 11:34:58 -07:00
l2tp_debugfs.c net, l2tp: convert l2tp_tunnel.ref_count from atomic_t to refcount_t 2017-07-04 22:35:15 +01:00
l2tp_eth.c
l2tp_ip6.c
l2tp_ip.c
l2tp_netlink.c l2tp: hold tunnel used while creating sessions with netlink 2017-08-28 11:34:58 -07:00
l2tp_ppp.c net, l2tp: convert l2tp_tunnel.ref_count from atomic_t to refcount_t 2017-07-04 22:35:15 +01:00
Makefile