We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5e541f commit 8ae95edCopy full SHA for 8ae95ed
arch/metag/include/asm/uaccess.h
@@ -204,8 +204,9 @@ extern unsigned long __must_check __copy_user_zeroing(void *to,
204
static inline unsigned long
205
copy_from_user(void *to, const void __user *from, unsigned long n)
206
{
207
- if (access_ok(VERIFY_READ, from, n))
+ if (likely(access_ok(VERIFY_READ, from, n)))
208
return __copy_user_zeroing(to, from, n);
209
+ memset(to, 0, n);
210
return n;
211
}
212
0 commit comments