summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorXin Long <lucien.xin@gmail.com>2021-02-03 16:54:23 +0800
committerJakub Kicinski <kuba@kernel.org>2021-02-04 18:37:15 -0800
commit5d30c626b67e1c70ba7805d468c7de39f1da2f7e (patch)
treeddea15539e696d53fc418d3d115b662d29d1cd0f /crypto
parenta4a600dd301ccde6ea239804ec1f19364a39d643 (diff)
rxrpc: call udp_tunnel_encap_enable in rxrpc_open_socket
When doing encap_enable/increasing encap_needed_key, up->encap_enabled is not set in rxrpc_open_socket(), and it will cause encap_needed_key not being decreased in udpv6_destroy_sock(). This patch is to improve it by just calling udp_tunnel_encap_enable() where it increases both UDP and UDPv6 encap_needed_key and sets up->encap_enabled. v4->v5: - add the missing '#include <net/udp_tunnel.h>', as David Howells noticed. Acked-and-tested-by: David Howells <dhowells@redhat.com> Signed-off-by: Xin Long <lucien.xin@gmail.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions