summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2005-01-12 00:35:33 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2005-01-12 00:35:33 +0000
commita31aebc4655d359f52bdd0cf5325ac0e1f1edaa6 (patch)
tree2bf7ece672defd86d8a44bd671e2c348a3a53c23 /sys/dev/ic
parentb9e5cd47c9abab64cecec16dfc0fc4e6ecb8eed9 (diff)
Fix an off by one in the critical section clearing code. The code was
adjusting twice for the instruction pointer indicating the *next* instruction to execute. From FreeBSD r1.101.
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/aic7xxx.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/ic/aic7xxx.c b/sys/dev/ic/aic7xxx.c
index c5ef087829c..f677c4ff89c 100644
--- a/sys/dev/ic/aic7xxx.c
+++ b/sys/dev/ic/aic7xxx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aic7xxx.c,v 1.61 2004/12/30 17:20:09 krw Exp $ */
+/* $OpenBSD: aic7xxx.c,v 1.62 2005/01/12 00:35:32 krw Exp $ */
/* $NetBSD: aic7xxx.c,v 1.108 2003/11/02 11:07:44 wiz Exp $ */
/*
@@ -40,7 +40,7 @@
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGES.
*
- * $Id: aic7xxx.c,v 1.61 2004/12/30 17:20:09 krw Exp $
+ * $Id: aic7xxx.c,v 1.62 2005/01/12 00:35:32 krw Exp $
*/
/*
* Ported from FreeBSD by Pascal Renauld, Network Storage Solutions, Inc. - April 2003
@@ -1498,8 +1498,6 @@ ahc_clear_critical_section(struct ahc_softc *ahc)
* so we are really executing the instruction just
* before it.
*/
- if (seqaddr != 0)
- seqaddr -= 1;
cs = ahc->critical_sections;
for (i = 0; i < ahc->num_critical_sections; i++, cs++) {