* IA-32 support patch: munmap should return EINVAL if size == 0
@ 2003-06-24 22:16 Arun Sharma
2003-06-30 16:30 ` Bjorn Helgaas
0 siblings, 1 reply; 2+ messages in thread
From: Arun Sharma @ 2003-06-24 22:16 UTC (permalink / raw)
To: linux-ia64
[-- Attachment #1: Type: text/plain, Size: 136 bytes --]
Native IA-32 returns EINVAL on a unmap of size 0. Our behavior is currently not compatible.
Please apply to both 2.4 and 2.5.
-Arun
[-- Attachment #2: munmap.21.txt --]
[-- Type: text/plain, Size: 339 bytes --]
--- linux-2.4/arch/ia64/ia32/sys_ia32.c Tue May 27 10:20:10 2003
+++ linux-change/arch/ia64/ia32/sys_ia32.c Thu May 29 00:50:33 2003
@@ -547,7 +547,7 @@
#if PAGE_SHIFT <= IA32_PAGE_SHIFT
ret = sys_munmap(start, end - start);
#else
- if (start > end)
+ if (start >= end)
return -EINVAL;
start = PAGE_ALIGN(start);
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-06-30 16:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-24 22:16 IA-32 support patch: munmap should return EINVAL if size == 0 Arun Sharma
2003-06-30 16:30 ` Bjorn Helgaas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox