summaryrefslogtreecommitdiff
path: root/arch/m32r/oprofile
diff options
context:
space:
mode:
authorEric Dumazet <dada1@cosmosbay.com>2005-12-13 06:17:14 (GMT)
committerLinus Torvalds <torvalds@g5.osdl.org>2005-12-13 06:31:16 (GMT)
commit8309cf66fd90ccba9894adde2f3a8d7e1507e4d2 (patch)
treee9d9045cfa5a2f2599b3682f9f53d68fe3b8ebf2 /arch/m32r/oprofile
parentfd4954714e8e7db9f6eb5878fa6111c46445ca81 (diff)
downloadlinux-fsl-qoriq-8309cf66fd90ccba9894adde2f3a8d7e1507e4d2.tar.xz
[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 <dada1@cosmosbay.com> Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/m32r/oprofile')
0 files changed, 0 insertions, 0 deletions