diff options
Diffstat (limited to 'arch/frv')
-rw-r--r-- | arch/frv/mm/elf-fdpic.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/frv/mm/elf-fdpic.c b/arch/frv/mm/elf-fdpic.c index 9477ccce070e..cac2c01a3a56 100644 --- a/arch/frv/mm/elf-fdpic.c +++ b/arch/frv/mm/elf-fdpic.c | |||
@@ -64,6 +64,10 @@ unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr, unsi | |||
64 | if (len > TASK_SIZE) | 64 | if (len > TASK_SIZE) |
65 | return -ENOMEM; | 65 | return -ENOMEM; |
66 | 66 | ||
67 | /* handle MAP_FIXED */ | ||
68 | if (flags & MAP_FIXED) | ||
69 | return addr; | ||
70 | |||
67 | /* only honour a hint if we're not going to clobber something doing so */ | 71 | /* only honour a hint if we're not going to clobber something doing so */ |
68 | if (addr) { | 72 | if (addr) { |
69 | addr = PAGE_ALIGN(addr); | 73 | addr = PAGE_ALIGN(addr); |