diff options
Diffstat (limited to 'arch/x86/mm/mmap.c')
-rw-r--r-- | arch/x86/mm/mmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/mm/mmap.c b/arch/x86/mm/mmap.c index ebfa52030d5c..9d518d693b4b 100644 --- a/arch/x86/mm/mmap.c +++ b/arch/x86/mm/mmap.c | |||
@@ -65,7 +65,7 @@ static int mmap_is_legacy(void) | |||
65 | return sysctl_legacy_va_layout; | 65 | return sysctl_legacy_va_layout; |
66 | } | 66 | } |
67 | 67 | ||
68 | static unsigned long mmap_rnd(void) | 68 | unsigned long arch_mmap_rnd(void) |
69 | { | 69 | { |
70 | unsigned long rnd; | 70 | unsigned long rnd; |
71 | 71 | ||
@@ -114,7 +114,7 @@ void arch_pick_mmap_layout(struct mm_struct *mm) | |||
114 | unsigned long random_factor = 0UL; | 114 | unsigned long random_factor = 0UL; |
115 | 115 | ||
116 | if (current->flags & PF_RANDOMIZE) | 116 | if (current->flags & PF_RANDOMIZE) |
117 | random_factor = mmap_rnd(); | 117 | random_factor = arch_mmap_rnd(); |
118 | 118 | ||
119 | mm->mmap_legacy_base = mmap_legacy_base(random_factor); | 119 | mm->mmap_legacy_base = mmap_legacy_base(random_factor); |
120 | 120 | ||