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

Commit 2c74d666 authored by Rusty Russell's avatar Rusty Russell Committed by Ingo Molnar
Browse files

x86, uv: fix cpumask iterator in uv_bau_init()



Impact: fix boot crash on UV systems

Commit 76ba0ecd "cpumask: use
cpumask_var_t in uv_flush_tlb_others" used cur_cpu as an iterator;
it was supposed to be zero for the code below it.

Reported-by: default avatarCliff Wickman <cpw@sgi.com>
Original-From: Cliff Wickman <cpw@sgi.com>
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
Acked-by: default avatarMike Travis <travis@sgi.com>
Cc: steiner@sgi.com
Cc: <stable@kernel.org>
LKML-Reference: <200903180822.31196.rusty@rustcorp.com.au>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 0ca0f16f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -750,7 +750,7 @@ static int __init uv_bau_init(void)
	int node;
	int nblades;
	int last_blade;
	int cur_cpu = 0;
	int cur_cpu;

	if (!is_uv_system())
		return 0;
@@ -760,6 +760,7 @@ static int __init uv_bau_init(void)
	uv_mmask = (1UL << uv_hub_info->n_val) - 1;
	nblades = 0;
	last_blade = -1;
	cur_cpu = 0;
	for_each_online_node(node) {
		blade = uv_node_to_blade_id(node);
		if (blade == last_blade)