summaryrefslogtreecommitdiffstats
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
authorDavid Rientjes <rientjes@google.com>2011-02-25 10:06:39 +0100
committerTejun Heo <tj@kernel.org>2011-02-25 10:10:54 +0100
commit1f565a896ee139a70e1a16f74a4ec29707691b0b (patch)
tree90b577a121a0dcb7a7034e4cdac125db1a29ad8d /mm/page_alloc.c
parentd1b19426b04787e48f2689923e28d37b488969b0 (diff)
downloadop-kernel-dev-1f565a896ee139a70e1a16f74a4ec29707691b0b.zip
op-kernel-dev-1f565a896ee139a70e1a16f74a4ec29707691b0b.tar.gz
x86-64, NUMA: Fix size of numa_distance array
numa_distance should be sized like the SLIT, an NxN matrix where N is the highest node id + 1. This patch fixes the calculation to avoid overflowing the array on the subsequent iteration. -tj: The original patch used last index to calculate size. Yinghai pointed out it should be incremented so it is the number of elements instead of the last index to calculate the size of the table. Updated accordingly. Signed-off-by: David Rientjes <rientjes@google.com> Cc: Yinghai Lu <yinghai@kernel.org> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'mm/page_alloc.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud