aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/cpuset.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/cpuset.c b/kernel/cpuset.c
index e0d296c5b302..d7f4d0c95737 100644
--- a/kernel/cpuset.c
+++ b/kernel/cpuset.c
@@ -645,7 +645,9 @@ static void update_cpu_domains(struct cpuset *cur)
645 int i, j; 645 int i, j;
646 646
647 for_each_cpu_mask(i, cur->cpus_allowed) { 647 for_each_cpu_mask(i, cur->cpus_allowed) {
648 for_each_cpu_mask(j, node_to_cpumask(cpu_to_node(i))) { 648 cpumask_t mask = node_to_cpumask(cpu_to_node(i));
649
650 for_each_cpu_mask(j, mask) {
649 if (!cpu_isset(j, cur->cpus_allowed)) 651 if (!cpu_isset(j, cur->cpus_allowed))
650 return; 652 return;
651 } 653 }