diff options
author | gibbs <gibbs@FreeBSD.org> | 2004-08-18 16:35:52 +0000 |
---|---|---|
committer | gibbs <gibbs@FreeBSD.org> | 2004-08-18 16:35:52 +0000 |
commit | 9e985c79f745d333b3af35e1f09efc65cb6204d5 (patch) | |
tree | f267895c5f9115553fd58cd99c9871e9e16584e4 /sys/dev/aic7xxx | |
parent | bb3971cc27d63f69995fa523a6df21ae90e3430d (diff) | |
download | FreeBSD-src-9e985c79f745d333b3af35e1f09efc65cb6204d5.zip FreeBSD-src-9e985c79f745d333b3af35e1f09efc65cb6204d5.tar.gz |
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
Diffstat (limited to 'sys/dev/aic7xxx')
-rw-r--r-- | sys/dev/aic7xxx/aic79xx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/aic7xxx/aic79xx.c b/sys/dev/aic7xxx/aic79xx.c index 612595b..ca8e2a9 100644 --- a/sys/dev/aic7xxx/aic79xx.c +++ b/sys/dev/aic7xxx/aic79xx.c @@ -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 { /* |