Skip to content
Commit fa8cbaaf authored by Dan McGee's avatar Dan McGee Committed by Benjamin Herrenschmidt
Browse files

powerpc+sparc64/mm: Remove hack in mmap randomize layout

Since commit 8a0a9bd4, 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 a5adc91a

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

Signed-off-by: default avatarDan McGee <dpmcgee@gmail.com>
Acked-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent 3ce21cdf
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment