aboutsummaryrefslogtreecommitdiff
path: root/arch/parisc/kernel/vdso.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/parisc/kernel/vdso.c')
-rw-r--r--arch/parisc/kernel/vdso.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/parisc/kernel/vdso.c b/arch/parisc/kernel/vdso.c
index 63dc44c4c246..47e5960a2f96 100644
--- a/arch/parisc/kernel/vdso.c
+++ b/arch/parisc/kernel/vdso.c
@@ -75,7 +75,7 @@ int arch_setup_additional_pages(struct linux_binprm *bprm,
map_base = mm->mmap_base;
if (current->flags & PF_RANDOMIZE)
- map_base -= (get_random_int() & 0x1f) * PAGE_SIZE;
+ map_base -= prandom_u32_max(0x20) * PAGE_SIZE;
vdso_text_start = get_unmapped_area(NULL, map_base, vdso_text_len, 0, 0);