[Linux-kernel-mentees] [PATCH] fork.c: Use RCU_INIT_POINTER() instead of rcu_access_pointer()
Oleg Nesterov
oleg at redhat.com
Tue Jan 28 14:59:46 UTC 2020
On 01/27, madhuparnabhowmik10 at gmail.com wrote:
>
> --- a/kernel/fork.c
> +++ b/kernel/fork.c
> @@ -1508,7 +1508,7 @@ static int copy_sighand(unsigned long clone_flags, struct task_struct *tsk)
> return 0;
> }
> sig = kmem_cache_alloc(sighand_cachep, GFP_KERNEL);
> - rcu_assign_pointer(tsk->sighand, sig);
> + RCU_INIT_POINTER(tsk->sighand, sig);
Acked-by: Oleg Nesterov <oleg at redhat.com>
More information about the Linux-kernel-mentees
mailing list