aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/ia32
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/ia32')
-rw-r--r--arch/x86/ia32/mmap32.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/x86/ia32/mmap32.c b/arch/x86/ia32/mmap32.c
index e4b84b4a417a..7649370a3144 100644
--- a/arch/x86/ia32/mmap32.c
+++ b/arch/x86/ia32/mmap32.c
@@ -36,8 +36,8 @@
36 * 36 *
37 * Leave an at least ~128 MB hole. 37 * Leave an at least ~128 MB hole.
38 */ 38 */
39#define MIN_GAP (128*1024*1024) 39#define MIN_GAP (128 * 1024 * 1024)
40#define MAX_GAP (TASK_SIZE/6*5) 40#define MAX_GAP (TASK_SIZE / 6 * 5)
41 41
42static inline unsigned long mmap_base(struct mm_struct *mm) 42static inline unsigned long mmap_base(struct mm_struct *mm)
43{ 43{
@@ -45,7 +45,7 @@ static inline unsigned long mmap_base(struct mm_struct *mm)
45 unsigned long random_factor = 0; 45 unsigned long random_factor = 0;
46 46
47 if (current->flags & PF_RANDOMIZE) 47 if (current->flags & PF_RANDOMIZE)
48 random_factor = get_random_int() % (1024*1024); 48 random_factor = get_random_int() % (1024 * 1024);
49 49
50 if (gap < MIN_GAP) 50 if (gap < MIN_GAP)
51 gap = MIN_GAP; 51 gap = MIN_GAP;
@@ -66,8 +66,8 @@ void ia32_pick_mmap_layout(struct mm_struct *mm)
66 * bit is set, or if the expected stack growth is unlimited: 66 * bit is set, or if the expected stack growth is unlimited:
67 */ 67 */
68 if (sysctl_legacy_va_layout || 68 if (sysctl_legacy_va_layout ||
69 (current->personality & ADDR_COMPAT_LAYOUT) || 69 (current->personality & ADDR_COMPAT_LAYOUT) ||
70 current->signal->rlim[RLIMIT_STACK].rlim_cur == RLIM_INFINITY) { 70 current->signal->rlim[RLIMIT_STACK].rlim_cur == RLIM_INFINITY) {
71 mm->mmap_base = TASK_UNMAPPED_BASE; 71 mm->mmap_base = TASK_UNMAPPED_BASE;
72 mm->get_unmapped_area = arch_get_unmapped_area; 72 mm->get_unmapped_area = arch_get_unmapped_area;
73 mm->unmap_area = arch_unmap_area; 73 mm->unmap_area = arch_unmap_area;