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 f32c38abd791..8c9826062652 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 += get_random_int() & (VDSO_RANDOMIZE_SIZE - 1);
+ base += prandom_u32_max(VDSO_RANDOMIZE_SIZE);
base = PAGE_ALIGN(base);
}