Skip to contentSkip to conversation

powerpc/eeh: make sure warning message is printed.

PATCH New Linas Vepstas 1 participant 1 message Nov 7, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

----

 arch/powerpc/platforms/pseries/eeh.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/platforms/pseries/eeh.c +1 -1
Index: linux-2.6.23-rc8-mm1/arch/powerpc/platforms/pseries/eeh.c
===================================================================
@@ -325,7 +325,7 @@ eeh_wait_for_slot_status(struct pci_dn *
 
 		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) {