Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 26797a34 authored by Ingo Molnar's avatar Ingo Molnar
Browse files

sched: break out if printing a warning in sched_domain_debug()



checkpatch.pl and Andy Whitcroft noticed the following bug: we did
not break out after printing an error.

Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 3e9830dc
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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);