projects
/
platform
/
upstream
/
kernel-adaptation-pc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eacaa1f
)
[PATCH] uml get_user() NULL noise removal
author
Al Viro
<viro@ftp.linux.org.uk>
Fri, 30 Sep 2005 02:29:05 +0000
(
03:29
+0100)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Fri, 30 Sep 2005 15:42:24 +0000
(08:42 -0700)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/asm-um/uaccess.h
patch
|
blob
|
history
diff --git
a/include/asm-um/uaccess.h
b/include/asm-um/uaccess.h
index
801710d
..
2ee028b
100644
(file)
--- a/
include/asm-um/uaccess.h
+++ b/
include/asm-um/uaccess.h
@@
-44,7
+44,7
@@
const __typeof__(ptr) __private_ptr = ptr; \
__typeof__(*(__private_ptr)) __private_val; \
int __private_ret = -EFAULT; \
- (x) = 0; \
+ (x) =
(__typeof__(*(__private_ptr)))
0; \
if (__copy_from_user(&__private_val, (__private_ptr), \
sizeof(*(__private_ptr))) == 0) {\
(x) = (__typeof__(*(__private_ptr))) __private_val; \