Skip to content

Commit

Permalink
powerpc/powernv: Fix minor off-by-one error in opal_mce_check_early_r…
Browse files Browse the repository at this point in the history
…ecovery()

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>
  • Loading branch information
Andrew Donnellan authored and Michael Ellerman committed Dec 27, 2015
1 parent 759fb10 commit dc3799b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/platforms/powernv/opal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

/*
Expand Down

0 comments on commit dc3799b

Please sign in to comment.