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)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 6 Aug 2015 23:32:18 +0000 (00:32 +0100)
commitf9cedbf0a8b63a10442c2fbf6286b9fa65b68d26
treedb2bd114c6c8132553488b69e168e35d12641c3b
parentf062bd6e420a064a19563b80c26d746b0262e404
powerpc+sparc64/mm: Remove hack in mmap randomize layout

commit fa8cbaaf5a68f62db3f9a8444ecbb940b47984cb upstream.

Since commit 8a0a9bd4db63bc45e301, 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 a5adc91a4b44b5d1 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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Cc: Moritz Mühlenhoff <jmm@inutil.org>
arch/powerpc/mm/mmap_64.c
arch/sparc/kernel/sys_sparc_64.c