diff options
Diffstat (limited to 'kernel/taskstats.c')
-rw-r--r-- | kernel/taskstats.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/taskstats.c b/kernel/taskstats.c index 07e86a828073..4a23517169a6 100644 --- a/kernel/taskstats.c +++ b/kernel/taskstats.c | |||
@@ -183,7 +183,7 @@ static int fill_pid(pid_t pid, struct task_struct *tsk, | |||
183 | 183 | ||
184 | if (!tsk) { | 184 | if (!tsk) { |
185 | rcu_read_lock(); | 185 | rcu_read_lock(); |
186 | tsk = find_task_by_pid(pid); | 186 | tsk = find_task_by_vpid(pid); |
187 | if (tsk) | 187 | if (tsk) |
188 | get_task_struct(tsk); | 188 | get_task_struct(tsk); |
189 | rcu_read_unlock(); | 189 | rcu_read_unlock(); |
@@ -230,7 +230,7 @@ static int fill_tgid(pid_t tgid, struct task_struct *first, | |||
230 | */ | 230 | */ |
231 | rcu_read_lock(); | 231 | rcu_read_lock(); |
232 | if (!first) | 232 | if (!first) |
233 | first = find_task_by_pid(tgid); | 233 | first = find_task_by_vpid(tgid); |
234 | 234 | ||
235 | if (!first || !lock_task_sighand(first, &flags)) | 235 | if (!first || !lock_task_sighand(first, &flags)) |
236 | goto out; | 236 | goto out; |
@@ -547,7 +547,7 @@ void taskstats_exit(struct task_struct *tsk, int group_dead) | |||
547 | if (!stats) | 547 | if (!stats) |
548 | goto err; | 548 | goto err; |
549 | 549 | ||
550 | rc = fill_pid(tsk->pid, tsk, stats); | 550 | rc = fill_pid(-1, tsk, stats); |
551 | if (rc < 0) | 551 | if (rc < 0) |
552 | goto err; | 552 | goto err; |
553 | 553 | ||