summaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorLinas Vepstas <linas@austin.ibm.com>2007-11-08 07:03:53 +1100
committerPaul Mackerras <paulus@samba.org>2007-11-08 14:15:34 +1100
commit2c84b4076c0cbbc44ffea2ae1da2a801fb23f081 (patch)
tree0eb8f0fb1bd63631147b1faa7ff239eca67449a4 /arch/powerpc
parent2e6f40deb7dfdc40358fc9ecf07bf71ed553e5ac (diff)
downloadlinux-stable-2c84b4076c0cbbc44ffea2ae1da2a801fb23f081.tar.gz
linux-stable-2c84b4076c0cbbc44ffea2ae1da2a801fb23f081.tar.bz2
linux-stable-2c84b4076c0cbbc44ffea2ae1da2a801fb23f081.zip
[POWERPC] EEH: Make sure warning message is printed
Fix old buglet; a warning message should have been printed when a hardware reset takes too long. Signed-off-by: Linas Vepstas <linas@austin.ibm.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/platforms/pseries/eeh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/pseries/eeh.c b/arch/powerpc/platforms/pseries/eeh.c
index 00cfb53d746c..fb3d636e088b 100644
--- a/arch/powerpc/platforms/pseries/eeh.c
+++ b/arch/powerpc/platforms/pseries/eeh.c
@@ -323,7 +323,7 @@ eeh_wait_for_slot_status(struct pci_dn *pdn, int max_wait_msecs)
if (rets[2] == 0) return -1; /* permanently unavailable */
- if (max_wait_msecs <= 0) return -1;
+ if (max_wait_msecs <= 0) break;
mwait = rets[2];
if (mwait <= 0) {