Skip to content

Commit bb8651e

Browse files
Joakim TjernlundScott Wood
authored andcommitted
powerpc/fsl_pci: Correct fsl_pci_mcheck_exception
get_user() had it args reversed causing NIP to be NULL:ed instead of fixing up the PCI access. Note: This still hangs my P1020 Freescale CPU hard, but at least I get a NIP now. Signed-off-by: Joakim Tjernlund <joakim.tjernlund@infinera.com> Acked-by: Li Yang <leoyang.li@nxp.com> Signed-off-by: Scott Wood <oss@buserror.net>
1 parent f2ac428 commit bb8651e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/powerpc/sysdev/fsl_pci.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1070,7 +1070,7 @@ int fsl_pci_mcheck_exception(struct pt_regs *regs)
10701070
if (is_in_pci_mem_space(addr)) {
10711071
if (user_mode(regs)) {
10721072
pagefault_disable();
1073-
ret = get_user(regs->nip, &inst);
1073+
ret = get_user(inst, (__u32 __user *)regs->nip);
10741074
pagefault_enable();
10751075
} else {
10761076
ret = probe_kernel_address((void *)regs->nip, inst);

0 commit comments

Comments
 (0)