Skip to contentSkip to conversation

Cut hugetlb case early for 32bit on ia64

RFC PATCH In review Al Viro 1 participant 1 message Dec 5, 2009 Generic include/asm header files

lore
Share & tools
lore

Al Viro

author
#0 lore raw

RFC PATCH 12/18 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.

---
 arch/ia64/ia32/sys_ia32.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
arch/ia64/ia32/sys_ia32.c +3 -0
index 625ed8f..e031ee8 100644
@@ -858,6 +858,9 @@ ia32_do_mmap (struct file *file, unsigned long addr, unsigned long len, int prot
 
 	prot = get_prot32(prot);
 
+	if (flags & MAP_HUGETLB)
+		return -ENOMEM;
+
 #if PAGE_SHIFT > IA32_PAGE_SHIFT
 	mutex_lock(&ia32_mmap_mutex);
 	{
Signature · 1 line
1.5.6.5