Merge tag 'for-linus-20190125' of git://git.kernel.dk/linux-block
[linux-2.6-microblaze.git] / arch / x86 / lib / usercopy_32.c
index 71fb58d..bfd94e7 100644 (file)
@@ -67,7 +67,7 @@ unsigned long
 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;
 }