diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2006-09-21 10:52:31 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2006-09-21 10:52:31 +0000 |
commit | ccc885fc13826a45f21606a02b32ddbb21057e13 (patch) | |
tree | 90af84386f3722a3c8ad3a9831cd3113560ff7af /sys/dev/ic | |
parent | 99dfdf089ecdff4caedd96ddade9c9289c48a5fc (diff) |
deref the right rcb by using i as the index, not 1 all the time.
Diffstat (limited to 'sys/dev/ic')
-rw-r--r-- | sys/dev/ic/mpi.c | 4 |
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); |