* [RFC][PATCH 12/18] Cut hugetlb case early for 32bit on ia64
@ 2009-12-05 19:08 Al Viro
2009-12-05 19:08 ` Al Viro
0 siblings, 1 reply; 2+ messages in thread
From: Al Viro @ 2009-12-05 19:08 UTC (permalink / raw)
To: linux-arch; +Cc: torvalds, linux-kernel
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>
---
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 625ed8f..e031ee8 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
prot = get_prot32(prot);
+ if (flags & MAP_HUGETLB)
+ return -ENOMEM;
+
#if PAGE_SHIFT > IA32_PAGE_SHIFT
mutex_lock(&ia32_mmap_mutex);
{
--
1.5.6.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-12-05 20:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-05 19:08 [RFC][PATCH 12/18] Cut hugetlb case early for 32bit on ia64 Al Viro
2009-12-05 19:08 ` Al Viro
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox