Commit 25200143 authored by Arun Sharma's avatar Arun Sharma Committed by David Mosberger

[PATCH] ia64: IA-32 support patch: munmap should return EINVAL if size == 0

Native IA-32 returns EINVAL on a unmap of size 0. Our behavior is currently
not compatible.
parent 32568578
...@@ -519,7 +519,7 @@ sys32_munmap (unsigned int start, unsigned int len) ...@@ -519,7 +519,7 @@ sys32_munmap (unsigned int start, unsigned int len)
#if PAGE_SHIFT <= IA32_PAGE_SHIFT #if PAGE_SHIFT <= IA32_PAGE_SHIFT
ret = sys_munmap(start, end - start); ret = sys_munmap(start, end - start);
#else #else
if (start > end) if (start >= end)
return -EINVAL; return -EINVAL;
start = PAGE_ALIGN(start); start = PAGE_ALIGN(start);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment