]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc+sparc64/mm: Remove hack in mmap randomize layout
authorDan McGee <dpmcgee@gmail.com>
Mon, 17 Oct 2011 13:05:23 +0000 (13:05 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 28 Nov 2011 00:42:09 +0000 (11:42 +1100)
commit0909d8af80b36e3e270de331a0675b6d46c20cc5
treeef8c31c149c7f1fb6c504e7556dab3e56212c539
parentb483b6cd9fc9e31dcead54fec417bae76f3ad070
powerpc+sparc64/mm: Remove hack in mmap randomize layout

Since commit 4a82a99b5b4e39aa929f, this comment in mmap_rnd() does not
hold true as the value returned by get_random_int() will in fact be

different every single call. Remove the comment and simplify the code
back to its original desired form.

This reverts commit c63827563fe952df which is no longer necessary and
also fixes the sparc code that copied this same adjustment.

Signed-off-by: Dan McGee <dpmcgee@gmail.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/mm/mmap_64.c
arch/sparc/kernel/sys_sparc_64.c