]> git.baikalelectronics.ru Git - kernel.git/commit
l2tp: fix missing refcount drop in pppol2tp_tunnel_ioctl()
authorGuillaume Nault <g.nault@alphalink.fr>
Fri, 3 Aug 2018 15:00:11 +0000 (17:00 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Aug 2018 19:39:01 +0000 (12:39 -0700)
commite311f57a1327f31f89152d0520fc7e886d399bfb
tree6530e5e71d9a26b2ebd6313be7510ee1f0ae9088
parent071ddc0390fdd68ab8ccdf13b31d6158546e347a
l2tp: fix missing refcount drop in pppol2tp_tunnel_ioctl()

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: 2801018c0b4d ("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>
net/l2tp/l2tp_ppp.c