diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2006-06-06 14:51:30 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2006-06-06 14:51:30 +0000 |
commit | 378c2e4bfd8d366772828889d4cadc7cae2e1467 (patch) | |
tree | 6551b2d6a99bd2e6c2941cde85efc792ad32776e | |
parent | d97bea329033d1e7da158716b920af1549a9c5e6 (diff) |
set the ccb state when it comes off the free list. this isnt used anywhere
yet, but i like to be ready when the time comes.
-rw-r--r-- | sys/dev/ic/mpi.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/ic/mpi.c b/sys/dev/ic/mpi.c index b282aae2436..db78328b977 100644 --- a/sys/dev/ic/mpi.c +++ b/sys/dev/ic/mpi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mpi.c,v 1.25 2006/06/06 14:47:45 dlg Exp $ */ +/* $OpenBSD: mpi.c,v 1.26 2006/06/06 14:51:29 dlg Exp $ */ /* * Copyright (c) 2005, 2006 David Gwynne <dlg@openbsd.org> @@ -408,6 +408,8 @@ mpi_get_ccb(struct mpi_softc *sc) TAILQ_REMOVE(&sc->sc_ccb_free, ccb, ccb_link); + ccb->ccb_state = MPI_CCB_READY; + return (ccb); } |