]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
l2tp: hold tunnel in pppol2tp_connect()
authorGuillaume Nault <g.nault@alphalink.fr>
Mon, 30 Oct 2017 16:58:58 +0000 (17:58 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 18 Nov 2017 10:30:39 +0000 (11:30 +0100)
commit2b0abc895b7b3aa8717839fbd59d616258e7cd2d
treefa59d76c3d3e651cff05fcd8e1a985f249dce4fb
parent912a2fe3b2e70b110e25566e53b4d79caf10d8f3
l2tp: hold tunnel in pppol2tp_connect()

[ Upstream commit f9e56baf03f9d36043a78f16e3e8b2cfd211e09e ]

Use l2tp_tunnel_get() in pppol2tp_connect() to ensure the tunnel isn't
going to disappear while processing the rest of the function.

Fixes: fd558d186df2 ("l2tp: Split pppol2tp patch into separate l2tp and ppp parts")
Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/l2tp/l2tp_ppp.c