l2tp: clean up stale tunnel or session in pppol2tp_connect's error path
authorGuillaume Nault <g.nault@alphalink.fr>
Wed, 13 Jun 2018 13:09:21 +0000 (15:09 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Jun 2018 00:10:19 +0000 (17:10 -0700)
commitbda06be2158c7aa7e41b15500c4d3840369c19a6
tree54edd9490c593c7e08c3a06cc0cb700cf3fc9bab
parent3e1bc8bf974e2d4e7beb842a4c801c2542eff3bd
l2tp: clean up stale tunnel or session in pppol2tp_connect's error path

pppol2tp_connect() may create a tunnel or a session. Remove them in
case of error.

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>
net/l2tp/l2tp_ppp.c