]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
l2tp: don't set sk_user_data in tunnel socket
authorJames Chapman <jchapman@katalix.com>
Mon, 29 Jul 2024 15:38:04 +0000 (16:38 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 Jul 2024 08:25:13 +0000 (09:25 +0100)
commit4a4cd70369f162f819b7855b0eabcb2db21f01f4
tree3bb2d766e2bc902195a7cacaed4084c350a0a7ee
parenteeb11209e000797d555aefd642e24ed6f4e70140
l2tp: don't set sk_user_data in tunnel socket

l2tp no longer uses the tunnel socket's sk_user_data so drop the code
which sets it.

In l2tp_validate_socket use l2tp_sk_to_tunnel to check whether a given
socket is already attached to an l2tp tunnel since we can no longer
use non-null sk_user_data to indicate this.

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_core.c