[PATCH] Fix NULL pointer dereference in node_read_numastat()
authorChristoph Lameter <clameter@sgi.com>
Tue, 11 Apr 2006 05:52:47 +0000 (22:52 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 11 Apr 2006 13:18:30 +0000 (06:18 -0700)
commit54404e72cd3758e465fb6362f6d71e22b705c589
treeaead2791d4e5ea39c0bb57e4d29760d72db07727
parent29ff2db55196717e2e67e0f04adc833ee7edd491
[PATCH] Fix NULL pointer dereference in node_read_numastat()

zone_pcp() only returns valid values if the processor is online.

Change node_read_numastat() to only scan online processors.

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/base/node.c