summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2006-09-21 10:52:31 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2006-09-21 10:52:31 +0000
commitccc885fc13826a45f21606a02b32ddbb21057e13 (patch)
tree90af84386f3722a3c8ad3a9831cd3113560ff7af
parent99dfdf089ecdff4caedd96ddade9c9289c48a5fc (diff)
deref the right rcb by using i as the index, not 1 all the time.
-rw-r--r--sys/dev/ic/mpi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/mpi.c b/sys/dev/ic/mpi.c
index b7917260b3a..443a9bc0cce 100644
--- a/sys/dev/ic/mpi.c
+++ b/sys/dev/ic/mpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpi.c,v 1.72 2006/09/21 10:00:40 dlg Exp $ */
+/* $OpenBSD: mpi.c,v 1.73 2006/09/21 10:52:30 dlg Exp $ */
/*
* Copyright (c) 2005, 2006 David Gwynne <dlg@openbsd.org>
@@ -755,7 +755,7 @@ mpi_reply(struct mpi_softc *sc, u_int32_t reg)
i = (reply_dva - (u_int32_t)MPI_DMA_DVA(sc->sc_replies)) /
MPI_REPLY_SIZE;
- rcb = &sc->sc_rcbs[1];
+ rcb = &sc->sc_rcbs[i];
reply = rcb->rcb_reply;
id = letoh32(reply->msg_context);