Commit 072daeed authored by Scott Wood's avatar Scott Wood

powerpc/fsl_pci: Check for get_user/probe_kernel_address failure

Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
Reported-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Hongtao Jia <hongtao.jia@freescale.com>
parent a109752e
......@@ -1002,7 +1002,7 @@ int fsl_pci_mcheck_exception(struct pt_regs *regs)
ret = probe_kernel_address(regs->nip, inst);
}
if (mcheck_handle_load(regs, inst)) {
if (!ret && mcheck_handle_load(regs, inst)) {
regs->nip += 4;
return 1;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment