OSDN Git Service

uaccess-reimplement-probe_kernel_address-using-probe_kernel_read-fix
authorAndrew Morton <akpm@linux-foundation.org>
Tue, 22 Sep 2015 23:03:59 +0000 (09:03 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 22 Sep 2015 23:03:59 +0000 (09:03 +1000)
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/arm/mm/alignment.c

index 9769f1e..dade8d1 100644 (file)
@@ -783,7 +783,7 @@ do_alignment(unsigned long addr, unsigned int fsr, struct pt_regs *regs)
                        }
                }
        } else {
-               fault = probe_kernel_address(instrptr, instr);
+               fault = probe_kernel_address((void *)instrptr, instr);
                instr = __mem_to_opcode_arm(instr);
        }