]> git.ipfire.org Git - thirdparty/kernel/linux.git/blobdiff - arch/arm64/kernel/armv8_deprecated.c
Remove 'type' argument from access_ok() function
[thirdparty/kernel/linux.git] / arch / arm64 / kernel / armv8_deprecated.c
index 92be1d12d59080d06472e05e2f292f812a38d224..e52e7280884a850a033b9d91e495dd9e2cb82efc 100644 (file)
@@ -402,7 +402,7 @@ static int swp_handler(struct pt_regs *regs, u32 instr)
 
        /* Check access in reasonable access range for both SWP and SWPB */
        user_ptr = (const void __user *)(unsigned long)(address & ~3);
-       if (!access_ok(VERIFY_WRITE, user_ptr, 4)) {
+       if (!access_ok(user_ptr, 4)) {
                pr_debug("SWP{B} emulation: access to 0x%08x not allowed!\n",
                        address);
                goto fault;