public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2.6.5-rc2] LSB compliance fix in mprotect
@ 2004-03-20 19:59 Marc-Christian Petersen
  0 siblings, 0 replies; only message in thread
From: Marc-Christian Petersen @ 2004-03-20 19:59 UTC (permalink / raw)
  To: lkml; +Cc: Andrew Morton, Linus Torvalds

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-03-20 20:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-20 19:59 [PATCH 2.6.5-rc2] LSB compliance fix in mprotect Marc-Christian Petersen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox