]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - arch/powerpc/lib/sstep.c
uaccess: fix type mismatch warnings from access_ok()
[mirror_ubuntu-jammy-kernel.git] / arch / powerpc / lib / sstep.c
index 18cf3109cd686022798cde22085fe6141015e16d..a9618e54143e349247764f131fb076be35c2098c 100644 (file)
@@ -113,9 +113,9 @@ static nokprobe_inline long address_ok(struct pt_regs *regs,
 {
        if (!user_mode(regs))
                return 1;
-       if (__access_ok(ea, nb))
+       if (access_ok((void __user *)ea, nb))
                return 1;
-       if (__access_ok(ea, 1))
+       if (access_ok((void __user *)ea, 1))
                /* Access overlaps the end of the user region */
                regs->dar = TASK_SIZE_MAX - 1;
        else