summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/process.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2016-02-29 09:04:01 +0100
committerIngo Molnar <mingo@kernel.org>2016-02-29 09:04:01 +0100
commit0a7348925f58839fbb4c86b7e34f43b91beb0586 (patch)
tree8db1b38503cc444f78b13ed1a3d6816708cf181c /arch/powerpc/kernel/process.c
parentMerge tag 'perf-core-for-mingo-20160226' of git://git.kernel.org/pub/scm/linu... (diff)
parentLinux 4.5-rc6 (diff)
downloadlinux-0a7348925f58839fbb4c86b7e34f43b91beb0586.tar.xz
linux-0a7348925f58839fbb4c86b7e34f43b91beb0586.zip
Merge tag 'v4.5-rc6' into perf/core, to pick up fixes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/powerpc/kernel/process.c')
-rw-r--r--arch/powerpc/kernel/process.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c
index dccc87e8fee5..3c5736e52a14 100644
--- a/arch/powerpc/kernel/process.c
+++ b/arch/powerpc/kernel/process.c
@@ -1768,9 +1768,9 @@ static inline unsigned long brk_rnd(void)
/* 8MB for 32bit, 1GB for 64bit */
if (is_32bit_task())
- rnd = (long)(get_random_int() % (1<<(23-PAGE_SHIFT)));
+ rnd = (get_random_long() % (1UL<<(23-PAGE_SHIFT)));
else
- rnd = (long)(get_random_int() % (1<<(30-PAGE_SHIFT)));
+ rnd = (get_random_long() % (1UL<<(30-PAGE_SHIFT)));
return rnd << PAGE_SHIFT;
}