Explorar o código

[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>
Linas Vepstas %!s(int64=17) %!d(string=hai) anos
pai
achega
2c84b4076c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      arch/powerpc/platforms/pseries/eeh.c

+ 1 - 1
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 (rets[2] == 0) return -1; /* permanently unavailable */
 
 
-		if (max_wait_msecs <= 0) return -1;
+		if (max_wait_msecs <= 0) break;
 
 
 		mwait = rets[2];
 		mwait = rets[2];
 		if (mwait <= 0) {
 		if (mwait <= 0) {