]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
xfrm: remove stray synchronize_rcu from xfrm_init
authorFlorian Westphal <fw@strlen.de>
Wed, 14 Apr 2021 16:12:52 +0000 (18:12 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Mon, 19 Apr 2021 10:25:11 +0000 (12:25 +0200)
This function is called during boot, from ipv4 stack, there is no need
to set the pointer to NULL (static storage duration, so already NULL).

No need for the synchronize_rcu either.  Remove both.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_policy.c

index cc6e02eb76c28cec8351b94d2eabfe1a1350f073..ce500f847b99118b1ee50afcfa101856943d2d91 100644 (file)
@@ -4134,9 +4134,6 @@ void __init xfrm_init(void)
 #ifdef CONFIG_XFRM_ESPINTCP
        espintcp_init();
 #endif
-
-       RCU_INIT_POINTER(xfrm_if_cb, NULL);
-       synchronize_rcu();
 }
 
 #ifdef CONFIG_AUDITSYSCALL