From: Miao Xie Date: Mon, 21 Jul 2008 21:21:35 +0000 (-0700) Subject: cpusets: fix wrong domain attr updates X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=91cd4d6ef0abb1f65e81f8fe37e7d3c10344e38c;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.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 459d601947a8..d2cc67dac8b1 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++;