mirror of
https://github.com/joel16/android_kernel_sony_msm8994_rework.git
synced 2024-12-20 19:08:31 +00:00
[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; \
|
||||
__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; \
|
||||
|
Loading…
Reference in New Issue
Block a user