From: Arun Sharma <arun.sharma@intel.com>
To: linux-ia64@vger.kernel.org
Subject: IA-32 support patch: munmap should return EINVAL if size == 0
Date: Tue, 24 Jun 2003 22:16:40 +0000 [thread overview]
Message-ID: <marc-linux-ia64-105649312310734@msgid-missing> (raw)
[-- 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);
next reply other threads:[~2003-06-24 22:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-24 22:16 Arun Sharma [this message]
2003-06-30 16:30 ` IA-32 support patch: munmap should return EINVAL if size == 0 Bjorn Helgaas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-linux-ia64-105649312310734@msgid-missing \
--to=arun.sharma@intel.com \
--cc=linux-ia64@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox