Messages in this thread | | | Date | Tue, 28 Jan 2020 15:59:46 +0100 | From | Oleg Nesterov <> | Subject | Re: [PATCH] fork.c: Use RCU_INIT_POINTER() instead of rcu_access_pointer() |
| |
On 01/27, madhuparnabhowmik10@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@redhat.com>
| |