mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
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>
This commit is contained in:
parent
564b3bffc6
commit
0067bd8a55
1 changed files with 3 additions and 0 deletions
|
@ -858,6 +858,9 @@ ia32_do_mmap (struct file *file, unsigned long addr, unsigned long len, int prot
|
||||||
|
|
||||||
prot = get_prot32(prot);
|
prot = get_prot32(prot);
|
||||||
|
|
||||||
|
if (flags & MAP_HUGETLB)
|
||||||
|
return -ENOMEM;
|
||||||
|
|
||||||
#if PAGE_SHIFT > IA32_PAGE_SHIFT
|
#if PAGE_SHIFT > IA32_PAGE_SHIFT
|
||||||
mutex_lock(&ia32_mmap_mutex);
|
mutex_lock(&ia32_mmap_mutex);
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue