]> git.baikalelectronics.ru Git - kernel.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Mar 2023 12:34:02 +0000 (13:34 +0100)
commit6b69656d79783684616967060b09ae46be4b9f58
tree001f3e8da89ebdf5c120651b95d42ab6e30623d0
parent7a43616ff6f2135e9d860ddb6e9bcefdc8fbc457
mptcp: add ro_after_init for tcp{,v6}_prot_override

commit e3f255fd96d484af1a37ac9e735f8f1dc377d3dd 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: 3c2aa14b9ad8 ("mptcp: implement delegated actions")
Cc: stable@vger.kernel.org
Fixes: 00bbb2c1698b ("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>
net/mptcp/subflow.c