summaryrefslogtreecommitdiff
path: root/sys/arch/mvme88k/dev
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2009-02-18 20:49:28 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2009-02-18 20:49:28 +0000
commit813087a07a610752b4c49a07df8d42665bad1cd1 (patch)
tree6e93b94d15644c3aa5e659956bb5636962cc7727 /sys/arch/mvme88k/dev
parenta21e48ecc1227742fb0e02b4d8ee2342fb72b97c (diff)
Fix thinko in list traversal in vsbic_cmd_ccb().
Diffstat (limited to 'sys/arch/mvme88k/dev')
-rw-r--r--sys/arch/mvme88k/dev/vsbic.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/mvme88k/dev/vsbic.c b/sys/arch/mvme88k/dev/vsbic.c
index afd2447275d..3add3ad1641 100644
--- a/sys/arch/mvme88k/dev/vsbic.c
+++ b/sys/arch/mvme88k/dev/vsbic.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vsbic.c,v 1.3 2009/02/16 21:19:06 miod Exp $ */
+/* $OpenBSD: vsbic.c,v 1.4 2009/02/18 20:49:27 miod Exp $ */
/*
* Copyright (c) 2008, 2009 Miodrag Vallat.
@@ -922,7 +922,8 @@ vsbic_cmd_ccb(struct vsbic_softc *sc, struct vsbic_cmd *cmd)
{
struct vsbic_ccb *ccb, *prev;
- for (prev = NULL, ccb = sc->sc_ccb_active; ccb != NULL; prev = ccb++) {
+ for (prev = NULL, ccb = sc->sc_ccb_active; ccb != NULL;
+ prev = ccb, ccb = ccb->ccb_next) {
if (ccb->ccb_cmd == cmd) {
if (prev == NULL)
sc->sc_ccb_active = ccb->ccb_next;