From: Eric Dumazet Date: Tue, 13 Dec 2005 06:17:14 +0000 (-0800) Subject: [PATCH] x86_64: Bug correction in populate_memnodemap() X-Git-Tag: v2.6.15-rc6~86 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8309cf66fd90ccba9894adde2f3a8d7e1507e4d2;p=pandora-kernel.git [PATCH] x86_64: Bug correction in populate_memnodemap() As reported by Keith Mannthey, there are problems in populate_memnodemap() The bug was that the compute_hash_shift() was returning 31, with incorrect initialization of memnodemap[] To correct the bug, we must use (1UL << shift) instead of (1 << shift) to avoid an integer overflow, and we must check that shift < 64 to avoid an infinite loop. Signed-off-by: Eric Dumazet Signed-off-by: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed