IA-32 support patch: munmap should return EINVAL if size == 0

From: Arun Sharma <arun.sharma_at_intel.com>
Date: 2003-06-25 08:16:40
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

--- 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);



-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Tue Jun 24 18:18:43 2003

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:15 EST