]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
x86: add check for node passed to node_to_cpumask, v3
authorMike Travis <travis@sgi.com>
Fri, 27 Jun 2008 17:10:13 +0000 (10:10 -0700)
committerIngo Molnar <mingo@elte.hu>
Tue, 8 Jul 2008 11:16:16 +0000 (13:16 +0200)
commit6a2f47ca27fad36f99e8478a3807d4b8c7db80e7
tree9d281e3969e5431b1d330cbdc3ee13d626fba4ee
parentcd5dce2fb023a6f0168344b7dd8adec30017458e
x86: add check for node passed to node_to_cpumask, v3

  * When CONFIG_DEBUG_PER_CPU_MAPS is set, the node passed to
    node_to_cpumask and node_to_cpumask_ptr should be validated.
    If invalid, then a dump_stack is performed and a zero cpumask
    is returned.

v2: Slightly different version to remove a compiler warning.
v3: Redone to reflect moving setup.c -> setup_percpu.c

Signed-off-by: Mike Travis <travis@sgi.com>
Cc: Vegard Nossum <vegard.nossum@gmail.com>
Cc: "akpm@linux-foundation.org" <akpm@linux-foundation.org>
Cc: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/setup_percpu.c
include/asm-x86/topology.h