From: Miao Xie Date: Tue, 22 Jul 2008 20:05:21 +0000 (+0000) Subject: cpusets: fix wrong domain attr updates X-Git-Tag: v2.6.26.1~39 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d4f3865285ebc54998c341c57498de96f8daf4d0;p=platform%2Fkernel%2Flinux-stable.git cpusets: fix wrong domain attr updates commit 91cd4d6ef0abb1f65e81f8fe37e7d3c10344e38c upstream Fix wrong domain attr updates, or we will always update the first sched domain attr. Signed-off-by: Miao Xie Cc: Hidetoshi Seto Cc: Paul Jackson Cc: Nick Piggin Cc: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- diff --git a/kernel/cpuset.c b/kernel/cpuset.c index 798b3ab054eb..2a028f548d86 100644 --- a/kernel/cpuset.c +++ b/kernel/cpuset.c @@ -679,7 +679,9 @@ restart: if (apn == b->pn) { cpus_or(*dp, *dp, b->cpus_allowed); b->pn = -1; - update_domain_attr(dattr, b); + if (dattr) + update_domain_attr(dattr + + nslot, b); } } nslot++;