summaryrefslogtreecommitdiff
path: root/arch/loongarch/kernel/vdso.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/loongarch/kernel/vdso.c')
-rw-r--r--arch/loongarch/kernel/vdso.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/loongarch/kernel/vdso.c b/arch/loongarch/kernel/vdso.c
index 8c9826062652..eaebd2e0f725 100644
--- a/arch/loongarch/kernel/vdso.c
+++ b/arch/loongarch/kernel/vdso.c
@@ -78,7 +78,7 @@ static unsigned long vdso_base(void)
unsigned long base = STACK_TOP;
if (current->flags & PF_RANDOMIZE) {
- base += prandom_u32_max(VDSO_RANDOMIZE_SIZE);
+ base += get_random_u32_below(VDSO_RANDOMIZE_SIZE);
base = PAGE_ALIGN(base);
}