projects
/
profile
/
ivi
/
kernel-adaptation-intel-automotive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a8ab1c
)
compat: return -EFAULT on error in waitid()
author
Dan Carpenter
<dan.carpenter@oracle.com>
Fri, 22 Feb 2013 00:41:57 +0000
(16:41 -0800)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Fri, 22 Feb 2013 01:22:16 +0000
(17:22 -0800)
The copy_to_user() call returns the number of bytes remaining but we
want to return -EFAULT on error.
Fixes "x32: fix waitid()"
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/compat.c
patch
|
blob
|
history
diff --git
a/kernel/compat.c
b/kernel/compat.c
index
36700e9
..
f4bddb9
100644
(file)
--- a/
kernel/compat.c
+++ b/
kernel/compat.c
@@
-593,7
+593,7
@@
COMPAT_SYSCALL_DEFINE5(waitid,
else
ret = put_compat_rusage(&ru, uru);
if (ret)
- return
ret
;
+ return
-EFAULT
;
}
BUG_ON(info.si_code & __SI_MASK);