powerpc/fsl_pci: Check for get_user/probe_kernel_address failure

Signed-off-by: Scott Wood <scottwood@freescale.com>
Reported-by: Andrew 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>
This commit is contained in:
Scott Wood 2015-08-24 11:43:03 -05:00
parent a109752ea6
commit 072daeed55
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}