diff options
-rw-r--r-- | arch/x86_64/kernel/sys_x86_64.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86_64/kernel/sys_x86_64.c b/arch/x86_64/kernel/sys_x86_64.c index 76bf7c241fe4..f891931eb753 100644 --- a/arch/x86_64/kernel/sys_x86_64.c +++ b/arch/x86_64/kernel/sys_x86_64.c | |||
@@ -93,6 +93,9 @@ arch_get_unmapped_area(struct file *filp, unsigned long addr, | |||
93 | unsigned long start_addr; | 93 | unsigned long start_addr; |
94 | unsigned long begin, end; | 94 | unsigned long begin, end; |
95 | 95 | ||
96 | if (flags & MAP_FIXED) | ||
97 | return addr; | ||
98 | |||
96 | find_start_end(flags, &begin, &end); | 99 | find_start_end(flags, &begin, &end); |
97 | 100 | ||
98 | if (len > end) | 101 | if (len > end) |