All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marc-Christian Petersen <m.c.p@wolk-project.de>
To: lkml <linux-kernel@vger.kernel.org>
Cc: Andrew Morton <akpm@osdl.org>, Linus Torvalds <torvalds@osdl.org>
Subject: [PATCH 2.6.5-rc2] LSB compliance fix in mprotect
Date: Sat, 20 Mar 2004 20:59:19 +0100	[thread overview]
Message-ID: <200403202059.19456@WOLK> (raw)

[-- Attachment #1: Type: text/plain, Size: 180 bytes --]

Hi Linus, Andrew,

http://linux.bkbits.net:8080/linux-2.4/diffs/mm/mprotect.c@1.5?nav=index.html|
src/|src/mm|hist/mm/mprotect.c

2.4 patch from Adrian.

Please apply.

ciao, Marc

[-- Attachment #2: mprotect-posix-fix.patch --]
[-- Type: text/x-diff, Size: 433 bytes --]

# mm/mprotect.c |    2 +-
# 1 files changed, 1 insertion(+), 1 deletion(-)

diff -Nru a/mm/mprotect.c b/mm/mprotect.c
--- a/mm/mprotect.c	Sun Mar  3 10:00:38 2002
+++ b/mm/mprotect.c	Thu Sep  4 02:14:56 2003
@@ -237,7 +237,7 @@
 	len = PAGE_ALIGN(len);
 	end = start + len;
 	if (end < start)
-		return -EINVAL;
+		return -ENOMEM;
 	if (prot & ~(PROT_READ | PROT_WRITE | PROT_EXEC | PROT_SEM))
 		return -EINVAL;
 	if (end == start)

                 reply	other threads:[~2004-03-20 20:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=200403202059.19456@WOLK \
    --to=m.c.p@wolk-project.de \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@osdl.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.