* [PATCH -mm] c/r: prctl: Add missing minus in error code
@ 2012-03-20 22:08 Cyrill Gorcunov
0 siblings, 0 replies; only message in thread
From: Cyrill Gorcunov @ 2012-03-20 22:08 UTC (permalink / raw)
To: Andrew Morton; +Cc: LKML
The error code should be a negative value.
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-03-20 22:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-20 22:08 [PATCH -mm] c/r: prctl: Add missing minus in error code Cyrill Gorcunov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).