summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorAndrew Donnellan <andrew.donnellan@au1.ibm.com>2015-12-21 18:28:37 +1100
committerMichael Ellerman <mpe@ellerman.id.au>2015-12-27 19:12:41 +1100
commitdc3799bb9ab2666fa19081121f05a4e573ecae12 (patch)
tree1bd9faa7339cf950c9f532fff37938215c842669 /arch
parent759fb100b22473bebc46a0f10ca1af5acd79439d (diff)
downloadlinux-dc3799bb9ab2666fa19081121f05a4e573ecae12.tar.gz
linux-dc3799bb9ab2666fa19081121f05a4e573ecae12.tar.bz2
linux-dc3799bb9ab2666fa19081121f05a4e573ecae12.zip
powerpc/powernv: Fix minor off-by-one error in opal_mce_check_early_recovery()
Fix off-by-one error in opal_mce_check_early_recovery() when checking whether the NIP falls within OPAL space. Signed-off-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/platforms/powernv/opal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/powernv/opal.c b/arch/powerpc/platforms/powernv/opal.c
index b349dd3e76ea..81f4a3ab8743 100644
--- a/arch/powerpc/platforms/powernv/opal.c
+++ b/arch/powerpc/platforms/powernv/opal.c
@@ -548,7 +548,7 @@ bool opal_mce_check_early_recovery(struct pt_regs *regs)
goto out;
if ((regs->nip >= opal.base) &&
- (regs->nip <= (opal.base + opal.size)))
+ (regs->nip < (opal.base + opal.size)))
recover_addr = find_recovery_address(regs->nip);
/*