]> www.infradead.org Git - users/jedix/linux-maple.git/commit
l2tp: don't use sk_user_data in l2tp_udp_encap_err_recv
authorJames Chapman <jchapman@katalix.com>
Thu, 20 Jun 2024 11:22:41 +0000 (12:22 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Jun 2024 10:33:33 +0000 (11:33 +0100)
commitc37e0138ca5f3be6b69c3020470aecb94eb5d773
tree5c722859fe28a05c657b9a1c09a5d099708d3de0
parentff6a2ac23cb027ff9980d633412db17d5f7a1e7c
l2tp: don't use sk_user_data in l2tp_udp_encap_err_recv

If UDP sockets are aliased, sk might be the wrong socket. There's no
benefit to using sk_user_data to do some checks on the associated
tunnel context. Just report the error anyway, like udp core does.

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