diff options
-rw-r--r-- | kernel/cpuset.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/cpuset.c b/kernel/cpuset.c index f57854b08922..4c49188cc49b 100644 --- a/kernel/cpuset.c +++ b/kernel/cpuset.c | |||
@@ -1682,9 +1682,9 @@ static int pid_array_load(pid_t *pidarray, int npids, struct cpuset *cs) | |||
1682 | 1682 | ||
1683 | do_each_thread(g, p) { | 1683 | do_each_thread(g, p) { |
1684 | if (p->cpuset == cs) { | 1684 | if (p->cpuset == cs) { |
1685 | pidarray[n++] = p->pid; | ||
1686 | if (unlikely(n == npids)) | 1685 | if (unlikely(n == npids)) |
1687 | goto array_full; | 1686 | goto array_full; |
1687 | pidarray[n++] = p->pid; | ||
1688 | } | 1688 | } |
1689 | } while_each_thread(g, p); | 1689 | } while_each_thread(g, p); |
1690 | 1690 | ||