summaryrefslogtreecommitdiffstats
path: root/init/init_task.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2017-05-05 20:31:23 +0200
committerEric W. Biederman <ebiederm@xmission.com>2018-07-21 17:43:12 +0200
commit2896b0f09f2617f953b8038978106cc4cbb4c52b (patch)
treed7dccf46871dd8d562b0b0ece06ad90f375de96b /init/init_task.c
parentLinux 4.18-rc1 (diff)
downloadlinux-2896b0f09f2617f953b8038978106cc4cbb4c52b.tar.xz
linux-2896b0f09f2617f953b8038978106cc4cbb4c52b.zip
pids: Initialize leader_pid in init_task
This is cheap and no cost so we might as well. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'init/init_task.c')
-rw-r--r--init/init_task.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/init/init_task.c b/init/init_task.c
index 74f60baa2799..7914ffb8dc73 100644
--- a/init/init_task.c
+++ b/init/init_task.c
@@ -33,6 +33,7 @@ static struct signal_struct init_signals = {
},
#endif
INIT_CPU_TIMERS(init_signals)
+ .leader_pid = &init_struct_pid,
INIT_PREV_CPUTIME(init_signals)
};