[PATCH] uml get_user() NULL noise removal
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
eacaa1f5aa
commit
4735885701
|
@ -44,7 +44,7 @@
|
||||||
const __typeof__(ptr) __private_ptr = ptr; \
|
const __typeof__(ptr) __private_ptr = ptr; \
|
||||||
__typeof__(*(__private_ptr)) __private_val; \
|
__typeof__(*(__private_ptr)) __private_val; \
|
||||||
int __private_ret = -EFAULT; \
|
int __private_ret = -EFAULT; \
|
||||||
(x) = 0; \
|
(x) = (__typeof__(*(__private_ptr)))0; \
|
||||||
if (__copy_from_user(&__private_val, (__private_ptr), \
|
if (__copy_from_user(&__private_val, (__private_ptr), \
|
||||||
sizeof(*(__private_ptr))) == 0) {\
|
sizeof(*(__private_ptr))) == 0) {\
|
||||||
(x) = (__typeof__(*(__private_ptr))) __private_val; \
|
(x) = (__typeof__(*(__private_ptr))) __private_val; \
|
||||||
|
|
Loading…
Reference in a new issue