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

Commit 03db1f74 authored by Vegard Nossum's avatar Vegard Nossum Committed by Ingo Molnar
Browse files

x86: don't return invalid pointers from node_to_cpumask()

parent 076ac2af
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -350,6 +350,7 @@ cpumask_t *_node_to_cpumask_ptr(int node)
		dump_stack();
		return &cpu_online_map;
	}
	BUG_ON(node >= nr_node_ids);
	return &node_to_cpumask_map[node];
}
EXPORT_SYMBOL(_node_to_cpumask_ptr);
@@ -365,6 +366,7 @@ cpumask_t node_to_cpumask(int node)
		dump_stack();
		return cpu_online_map;
	}
	BUG_ON(node >= nr_node_ids);
	return node_to_cpumask_map[node];
}
EXPORT_SYMBOL(node_to_cpumask);