diff options
author | Scott Wood <scottwood@freescale.com> | 2015-08-24 11:43:03 -0500 |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2015-10-17 00:35:41 -0500 |
commit | 072daeed5525a0d8ad1e5ddfb38f29cef1ca25f2 (patch) | |
tree | 95d53cfb45d9a9436b0e465fbf4f0bdb3b780631 | |
parent | a109752ea6a55c3682b6ac9114a125c5ce7e5353 (diff) |
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>
-rw-r--r-- | arch/powerpc/sysdev/fsl_pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/sysdev/fsl_pci.c b/arch/powerpc/sysdev/fsl_pci.c index ebc1f412cf49..c42609dde8d2 100644 --- a/arch/powerpc/sysdev/fsl_pci.c +++ b/arch/powerpc/sysdev/fsl_pci.c @@ -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; } |