diff --git a/[refs] b/[refs] index 98af18d4135f..185669734861 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 8f731f7d83d6c6a3eeb32cce79bfcddbf7fac8cc +refs/heads/master: 55a230aae650157720becc09cadb7d10efbf5013 diff --git a/trunk/kernel/cpuset.c b/trunk/kernel/cpuset.c index 64950fa5d321..a40a2c4384b3 100644 --- a/trunk/kernel/cpuset.c +++ b/trunk/kernel/cpuset.c @@ -1638,9 +1638,9 @@ static int pid_array_load(pid_t *pidarray, int npids, struct cpuset *cs) do_each_thread(g, p) { if (p->cpuset == cs) { + pidarray[n++] = p->pid; if (unlikely(n == npids)) goto array_full; - pidarray[n++] = p->pid; } } while_each_thread(g, p);