diff options
Diffstat (limited to 'arch/x86/mm/mmap_64.c')
-rw-r--r-- | arch/x86/mm/mmap_64.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/x86/mm/mmap_64.c b/arch/x86/mm/mmap_64.c index 8cf03ea651f8..65b34f226f14 100644 --- a/arch/x86/mm/mmap_64.c +++ b/arch/x86/mm/mmap_64.c | |||
@@ -100,7 +100,7 @@ void arch_pick_mmap_layout(struct mm_struct *mm) | |||
100 | /* ia32_pick_mmap_layout has its own. */ | 100 | /* ia32_pick_mmap_layout has its own. */ |
101 | return ia32_pick_mmap_layout(mm); | 101 | return ia32_pick_mmap_layout(mm); |
102 | #endif | 102 | #endif |
103 | } else if(mmap_is_legacy()) { | 103 | } else if (mmap_is_legacy()) { |
104 | mm->mmap_base = TASK_UNMAPPED_BASE; | 104 | mm->mmap_base = TASK_UNMAPPED_BASE; |
105 | mm->get_unmapped_area = arch_get_unmapped_area; | 105 | mm->get_unmapped_area = arch_get_unmapped_area; |
106 | mm->unmap_area = arch_unmap_area; | 106 | mm->unmap_area = arch_unmap_area; |
@@ -111,7 +111,6 @@ void arch_pick_mmap_layout(struct mm_struct *mm) | |||
111 | if (current->flags & PF_RANDOMIZE) | 111 | if (current->flags & PF_RANDOMIZE) |
112 | rnd = -rnd; | 112 | rnd = -rnd; |
113 | } | 113 | } |
114 | if (current->flags & PF_RANDOMIZE) { | 114 | if (current->flags & PF_RANDOMIZE) |
115 | mm->mmap_base += ((long)rnd) << PAGE_SHIFT; | 115 | mm->mmap_base += ((long)rnd) << PAGE_SHIFT; |
116 | } | ||
117 | } | 116 | } |