提交 dc3799bb 编写于 作者: A Andrew Donnellan 提交者: Michael Ellerman

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: NAndrew Donnellan <andrew.donnellan@au1.ibm.com>
Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
上级 759fb100
...@@ -548,7 +548,7 @@ bool opal_mce_check_early_recovery(struct pt_regs *regs) ...@@ -548,7 +548,7 @@ bool opal_mce_check_early_recovery(struct pt_regs *regs)
goto out; goto out;
if ((regs->nip >= opal.base) && if ((regs->nip >= opal.base) &&
(regs->nip <= (opal.base + opal.size))) (regs->nip < (opal.base + opal.size)))
recover_addr = find_recovery_address(regs->nip); recover_addr = find_recovery_address(regs->nip);
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册