Code Review
/
kvmfornfv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Upgrade to 4.4.50-rt62
[kvmfornfv.git]
/
kernel
/
arch
/
metag
/
include
/
asm
/
uaccess.h
diff --git
a/kernel/arch/metag/include/asm/uaccess.h
b/kernel/arch/metag/include/asm/uaccess.h
index
8282cbc
..
273e612
100644
(file)
--- a/
kernel/arch/metag/include/asm/uaccess.h
+++ b/
kernel/arch/metag/include/asm/uaccess.h
@@
-204,8
+204,9
@@
extern unsigned long __must_check __copy_user_zeroing(void *to,
static inline unsigned long
copy_from_user(void *to, const void __user *from, unsigned long n)
{
static inline unsigned long
copy_from_user(void *to, const void __user *from, unsigned long n)
{
- if (
access_ok(VERIFY_READ, from, n
))
+ if (
likely(access_ok(VERIFY_READ, from, n)
))
return __copy_user_zeroing(to, from, n);
return __copy_user_zeroing(to, from, n);
+ memset(to, 0, n);
return n;
}
return n;
}