aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/fork.c
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@mellanox.com>2020-03-10 12:49:09 -0300
committerJason Gunthorpe <jgg@mellanox.com>2020-03-10 12:49:09 -0300
commit6f00a54c2cdc82543d5804b0074821b5a40e577f (patch)
treea145ce5a9eee817c69633ac64b7635ef5afd4e42 /kernel/fork.c
parentMerge branch 'mlx5_packet_pacing' into rdma.git for-next (diff)
parentLinux 5.6-rc5 (diff)
Merge tag 'v5.6-rc5' into rdma.git for-next
Required due to dependencies in following patches. Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'kernel/fork.c')
-rw-r--r--kernel/fork.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index 60a1295f4384..86425305cd4a 100644
--- 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);
if (!sig)
return -ENOMEM;