Skip to contentSkip to conversation

LSB compliance fix in mprotect

PATCH New Marc-Christian Petersen 1 participant 1 message Mar 20, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 LSB compliance fix in mprotect

Hi Linus, Andrew,

http://linux.bkbits.net:8080/linux-2.4/diffs/mm/[email protected]?nav=index.html|
src/|src/mm|hist/mm/mprotect.c

2.4 patch from Adrian.

Please apply.

ciao, Marc

# mm/mprotect.c |    2 +-
# 1 files changed, 1 insertion(+), 1 deletion(-)
mm/mprotect.c +1 -1
diff -Nru a/mm/mprotect.c b/mm/mprotect.c
@@ -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)