From 8ebec8ac15f59ce84e66fdcb67d625809d2d2792 Mon Sep 17 00:00:00 2001 From: Paul Jackson Date: Thu, 18 Oct 2007 23:39:28 -0700 Subject: [PATCH] --- yaml --- r: 71409 b: refs/heads/master c: 55a230aae650157720becc09cadb7d10efbf5013 h: refs/heads/master i: 71407: fe0ddb29b744ff18f27910d7a40d9da423922be4 v: v3 --- [refs] | 2 +- trunk/kernel/cpuset.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);