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>
This commit is contained in:
parent
759fb100b2
commit
dc3799bb9a
@ -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);
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user