linux/net/l2tp
Guillaume Nault ba4072018f l2tp: fix missing refcount drop in pppol2tp_tunnel_ioctl()
commit f664e37dcc upstream.

If 'session' is not NULL and is not a PPP pseudo-wire, then we fail to
drop the reference taken by l2tp_session_get().

Fixes: ecd012e45a ("l2tp: filter out non-PPP sessions in pppol2tp_tunnel_ioctl()")
Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
[bwh: Backported to 3.16: Also call session->deref in both cases]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
History 2018-11-20 18:05:53 +00:00
..
Kconfig net/l2tp: remove depends on CONFIG_EXPERIMENTAL 2013-01-11 11:40:01 -08:00
l2tp_core.c l2tp: hold reference on tunnels printed in l2tp/tunnels debugfs file 2018-10-21 08:45:25 +01:00
l2tp_core.h l2tp: hold reference on tunnels printed in l2tp/tunnels debugfs file 2018-10-21 08:45:25 +01:00
l2tp_debugfs.c l2tp: fix {pppol2tp, l2tp_dfs}_seq_stop() in case of seq_file overflow 2018-10-21 08:45:36 +01:00
l2tp_eth.c l2tp: initialise l2tp_eth sessions before registering them 2018-02-13 18:42:10 +00:00
l2tp_ip.c l2tp: fix races with tunnel socket close 2018-06-16 22:22:26 +01:00
l2tp_ip6.c l2tp: fix races with tunnel socket close 2018-06-16 22:22:26 +01:00
l2tp_netlink.c l2tp: reject creation of non-PPP sessions on L2TPv2 tunnels 2018-11-20 18:05:15 +00:00
l2tp_ppp.c l2tp: fix missing refcount drop in pppol2tp_tunnel_ioctl() 2018-11-20 18:05:53 +00:00
Makefile l2tp: introduce L2TPv3 IP encapsulation support for IPv6 2012-05-01 09:30:55 -04:00