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 64950fa5d321..a40a2c4384b3 100644 --- a/kernel/cpuset.c +++ b/kernel/cpuset.c | |||
@@ -1638,9 +1638,9 @@ static int pid_array_load(pid_t *pidarray, int npids, struct cpuset *cs) | |||
1638 | 1638 | ||
1639 | do_each_thread(g, p) { | 1639 | do_each_thread(g, p) { |
1640 | if (p->cpuset == cs) { | 1640 | if (p->cpuset == cs) { |
1641 | pidarray[n++] = p->pid; | ||
1641 | if (unlikely(n == npids)) | 1642 | if (unlikely(n == npids)) |
1642 | goto array_full; | 1643 | goto array_full; |
1643 | pidarray[n++] = p->pid; | ||
1644 | } | 1644 | } |
1645 | } while_each_thread(g, p); | 1645 | } while_each_thread(g, p); |
1646 | 1646 | ||