summaryrefslogtreecommitdiff
path: root/arch/powerpc/kernel/eeh.c
diff options
context:
space:
mode:
authorSam Bobroff <sbobroff@linux.ibm.com>2020-04-28 13:45:05 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2020-05-18 21:58:43 +1000
commit6fa13640aea7bb0760846981aa2da4245307bd26 (patch)
tree246d081d245d1a3bfb94aa02b845d2774f0661dc /arch/powerpc/kernel/eeh.c
parentd93e5e2d03d4f41dfedb92200a2c0413ab8ee4e7 (diff)
powerpc/eeh: Fix pseries_eeh_configure_bridge()
If a device is hot unplgged during EEH recovery, it's possible for the RTAS call to ibm,configure-pe in pseries_eeh_configure() to return parameter error (-3), however negative return values are not checked for and this leads to an infinite loop. Fix this by correctly bailing out on negative values. Signed-off-by: Sam Bobroff <sbobroff@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Reviewed-by: Nathan Lynch <nathanl@linux.ibm.com> Link: https://lore.kernel.org/r/1b0a6010a647dc915816e44845b64d72066676a7.1588045502.git.sbobroff@linux.ibm.com
Diffstat (limited to 'arch/powerpc/kernel/eeh.c')
0 files changed, 0 insertions, 0 deletions