projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge tag 'for-linus-20190125' of git://git.kernel.dk/linux-block
[linux-2.6-microblaze.git]
/
arch
/
x86
/
lib
/
usercopy_32.c
diff --git
a/arch/x86/lib/usercopy_32.c
b/arch/x86/lib/usercopy_32.c
index
71fb58d
..
bfd94e7
100644
(file)
--- a/
arch/x86/lib/usercopy_32.c
+++ b/
arch/x86/lib/usercopy_32.c
@@
-67,7
+67,7
@@
unsigned long
clear_user(void __user *to, unsigned long n)
{
might_fault();
clear_user(void __user *to, unsigned long n)
{
might_fault();
- if (access_ok(
VERIFY_WRITE,
to, n))
+ if (access_ok(to, n))
__do_clear_user(to, n);
return n;
}
__do_clear_user(to, n);
return n;
}