]> www.infradead.org Git - users/hch/misc.git/commit
l2tp: cleanup eth/ppp pseudowire setup code
authorJames Chapman <jchapman@katalix.com>
Mon, 29 Jul 2024 15:38:13 +0000 (16:38 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 Jul 2024 08:25:13 +0000 (09:25 +0100)
commitd93b8a63f011f252dcfb101d5b90367bd8f42db3
tree7ea6f44c56fb90d6a69532dd20838e2e759ee7d2
parent0aa45570c3241e3bdba1a8b5b30d200c819b5b15
l2tp: cleanup eth/ppp pseudowire setup code

l2tp eth/ppp pseudowire setup/cleanup uses kfree() in some error
paths. Drop the refcount instead such that the session object is
always freed when the refcount reaches 0.

Signed-off-by: James Chapman <jchapman@katalix.com>
Signed-off-by: Tom Parkin <tparkin@katalix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/l2tp/l2tp_eth.c
net/l2tp/l2tp_ppp.c