]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
mptcp: add ro_after_init for tcp{,v6}_prot_override
authorGeliang Tang <geliang.tang@suse.com>
Thu, 9 Mar 2023 14:50:02 +0000 (15:50 +0100)
committerRoxana Nicolescu <roxana.nicolescu@canonical.com>
Wed, 17 May 2023 11:33:23 +0000 (13:33 +0200)
commit24210d290995800c94288523e7f4c9314e51e96f
treed1098aabfdad07f8c6aa1f274ec3dda6c40ef0d5
parentcfd56bd92f0f1cf38631fac3fd7e8f88d97f1842
mptcp: add ro_after_init for tcp{,v6}_prot_override

BugLink: https://bugs.launchpad.net/bugs/2016876
commit 822467a48e938e661965d09df5fcac66f7291050 upstream.

Add __ro_after_init labels for the variables tcp_prot_override and
tcpv6_prot_override, just like other variables adjacent to them, to
indicate that they are initialised from the init hooks and no writes
occur afterwards.

Fixes: b19bc2945b40 ("mptcp: implement delegated actions")
Cc: stable@vger.kernel.org
Fixes: 51fa7f8ebf0e ("mptcp: mark ops structures as ro_after_init")
Signed-off-by: Geliang Tang <geliang.tang@suse.com>
Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
net/mptcp/subflow.c