diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2009-11-30 17:34:06 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2009-12-11 06:34:10 -0500 |
commit | 0067bd8a55862ac9dd212bd1c4f6f5bff1ca1301 (patch) | |
tree | 85e4ba1eac7d0e5b15cdf87a184669ca044b0304 /arch/ia64/ia32/sys_ia32.c | |
parent | 564b3bffc619dcbdd160de597b0547a7017ea010 (diff) |
Cut hugetlb case early for 32bit on ia64
It won't work anyway (hugetlb addresses there are way beyond 4Gb)
and it's easier to stop it here.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/ia64/ia32/sys_ia32.c')
-rw-r--r-- | arch/ia64/ia32/sys_ia32.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/ia64/ia32/sys_ia32.c b/arch/ia64/ia32/sys_ia32.c index 429ec968c9ee..045b746b9808 100644 --- a/arch/ia64/ia32/sys_ia32.c +++ b/arch/ia64/ia32/sys_ia32.c | |||
@@ -858,6 +858,9 @@ ia32_do_mmap (struct file *file, unsigned long addr, unsigned long len, int prot | |||
858 | 858 | ||
859 | prot = get_prot32(prot); | 859 | prot = get_prot32(prot); |
860 | 860 | ||
861 | if (flags & MAP_HUGETLB) | ||
862 | return -ENOMEM; | ||
863 | |||
861 | #if PAGE_SHIFT > IA32_PAGE_SHIFT | 864 | #if PAGE_SHIFT > IA32_PAGE_SHIFT |
862 | mutex_lock(&ia32_mmap_mutex); | 865 | mutex_lock(&ia32_mmap_mutex); |
863 | { | 866 | { |