public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: David Mosberger <davidm@napali.hpl.hp.com>
To: linux-ia64@vger.kernel.org
Subject: Re: [PATCH] sys_mmap doesn't follow posix.1 when parameter len=0
Date: Wed, 25 May 2005 22:55:36 +0000	[thread overview]
Message-ID: <17045.616.536742.996274@napali.hpl.hp.com> (raw)
In-Reply-To: <8126E4F969BA254AB43EA03C59F44E840222BCA7@pdsmsx404>

>>>>> On Mon, 23 May 2005 08:47:06 +0800, "Zhang, Yanmin" <yanmin.zhang@intel.com> said:

  Yanmin> In IA64 kernel, sys_mmap calls do_mmap2 and do_mmap2 returns
  Yanmin> addr if len=0, which means the mmap sys call succeeds.

  Yanmin> Posix.1 says: The mmap() function shall fail if: [EINVAL]
  Yanmin> The value of len is zero.

  Yanmin> Here is a patch to fix it.

  Yanmin> Signed-off-by: Zhang Yanmin <yanmin.zhang@intel.com>

Looks like Gordon Jin changed mm/mmap.c to be POSIX compliant back in
March 2005 but didn't update the ia64 code.  Looks fine to me.

	--david

      reply	other threads:[~2005-05-25 22:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-23  0:47 [PATCH] sys_mmap doesn't follow posix.1 when parameter len=0 Zhang, Yanmin
2005-05-25 22:55 ` David Mosberger [this message]

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=17045.616.536742.996274@napali.hpl.hp.com \
    --to=davidm@napali.hpl.hp.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