diff options
Diffstat (limited to 'arch/s390/mm/mmap.c')
-rw-r--r-- | arch/s390/mm/mmap.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/s390/mm/mmap.c b/arch/s390/mm/mmap.c index d008f638b2cd..179a2c20b01f 100644 --- a/arch/s390/mm/mmap.c +++ b/arch/s390/mm/mmap.c | |||
@@ -183,7 +183,10 @@ unsigned long randomize_et_dyn(void) | |||
183 | { | 183 | { |
184 | unsigned long base; | 184 | unsigned long base; |
185 | 185 | ||
186 | base = (STACK_TOP / 3 * 2) & (~mmap_align_mask << PAGE_SHIFT); | 186 | base = STACK_TOP / 3 * 2; |
187 | if (!is_32bit_task()) | ||
188 | /* Align to 4GB */ | ||
189 | base &= ~((1UL << 32) - 1); | ||
187 | return base + mmap_rnd(); | 190 | return base + mmap_rnd(); |
188 | } | 191 | } |
189 | 192 | ||