diff --git a/kernel/sched.c b/kernel/sched.c index 1a80ac1b6dabdea24b3b2b9e560dda72d4ca53a6..7fefd8ab8b58bc5e8450118ff6d30c927db7781b 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -5534,16 +5534,19 @@ static void sched_domain_debug(struct sched_domain *sd, int cpu) printk("\n"); printk(KERN_ERR "ERROR: domain->cpu_power not " "set\n"); + break; } if (!cpus_weight(group->cpumask)) { printk("\n"); printk(KERN_ERR "ERROR: empty group\n"); + break; } if (cpus_intersects(groupmask, group->cpumask)) { printk("\n"); printk(KERN_ERR "ERROR: repeated CPUs\n"); + break; } cpus_or(groupmask, groupmask, group->cpumask);