[PATCH] uml get_user() NULL noise removal
From: Al Viro (viro_at_ftp.linux.org.uk)
Date: 09/30/05
- Previous message: Mark Knecht: "Re: l2.6.14-rc2-rt7 - build problems - mce?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 30 Sep 2005 03:29:05 +0100 To: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
----
diff -urN RC14-rc2-git6-base/include/asm-um/uaccess.h current/include/asm-um/uaccess.h
--- RC14-rc2-git6-base/include/asm-um/uaccess.h 2005-09-26 00:02:29.000000000 -0400
+++ current/include/asm-um/uaccess.h 2005-09-24 01:43:27.000000000 -0400
@@ -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; \
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Previous message: Mark Knecht: "Re: l2.6.14-rc2-rt7 - build problems - mce?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]