From: Miao Xie Date: Mon, 21 Jul 2008 21:21:35 +0000 (-0700) Subject: cpusets: fix wrong domain attr updates X-Git-Tag: v2.6.27-rc1~942 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=91cd4d6ef0abb1f65e81f8fe37e7d3c10344e38c;p=linux-2.6-omap-h63xx.git cpusets: fix wrong domain attr updates 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 Cc: [2.6.26.x] Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/cpuset.c b/kernel/cpuset.c index 459d601947a..d2cc67dac8b 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++;