mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
[PATCH] uml get_user() NULL noise removal
Signed-off-by: Al Viro <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
eacaa1f5aa
commit
4735885701
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue