Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0067bd8a authored by Al Viro's avatar Al Viro
Browse files

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: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 564b3bff
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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);
	{