[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20120320220851.GJ14269@moon>
Date: Wed, 21 Mar 2012 02:08:51 +0400
From: Cyrill Gorcunov <gorcunov@...nvz.org>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: LKML <linux-kernel@...r.kernel.org>
Subject: [PATCH -mm] c/r: prctl: Add missing minus in error code
The error code should be a negative value.
Signed-off-by: Cyrill Gorcunov <gorcunov@...nvz.org>
---
Hi Andrew, could you please check if this patch
is valid for -mm tree and it is not some left-over
dangling in my local tree (found this typo while trying
to describe error codes for man-page).
kernel/sys.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: linux-2.6.git/kernel/sys.c
===================================================================
--- linux-2.6.git.orig/kernel/sys.c
+++ linux-2.6.git/kernel/sys.c
@@ -1881,7 +1881,7 @@ static int prctl_set_mm(int opt, unsigne
up_read(&mm->mmap_sem);
if (copy_from_user(user_auxv, (const void __user *)addr, arg4))
- return EFAULT;
+ return -EFAULT;
/* Make sure the last entry is always AT_NULL */
user_auxv[AT_VECTOR_SIZE - 2] = 0;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists