From da2336b314d989baa4ba9d0863a6affb6e9092d4 Mon Sep 17 00:00:00 2001 From: Seonghun Lim Date: Thu, 8 Sep 2011 16:58:27 +0200 Subject: [PATCH] mprotect.2: fix off-by-one error in a memory range Signed-off-by: Michael Kerrisk --- man2/mprotect.2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man2/mprotect.2 b/man2/mprotect.2 index 8af7d3e8e..da08367ba 100644 --- a/man2/mprotect.2 +++ b/man2/mprotect.2 @@ -98,7 +98,7 @@ Internal kernel structures could not be allocated. .B ENOMEM Addresses in the range .RI [ addr , -.IR addr + len ] +.IR addr + len \-1] are invalid for the address space of the process, or specify one or more pages that are not mapped. (Before kernel 2.4.19, the error