Invert the polarity of two tests in the recovery code that could cause

the driver to issue a bus reset more quickly than intended.  We want to
*wait* if we find another SCB that could be the cause of this timeout,
not proceed to a bus reset.

Noticed by: kan
This commit is contained in:
Justin T. Gibbs 2004-08-18 16:35:52 +00:00
parent aed921b969
commit 0d0c8be691

View File

@ -9391,7 +9391,7 @@ bus_reset:
* untimed-out command is outstanding.
*/
if (ahd_other_scb_timeout(ahd, scb,
active_scb) != 0)
active_scb) == 0)
goto bus_reset;
continue;
}
@ -9430,7 +9430,7 @@ bus_reset:
* some other command. Reset the timer
* and go on.
*/
if (ahd_other_scb_timeout(ahd, scb, NULL) != 0)
if (ahd_other_scb_timeout(ahd, scb, NULL) == 0)
goto bus_reset;
} else {
/*