summaryrefslogtreecommitdiff
path: root/sys/dev/ic/mfi.c
diff options
context:
space:
mode:
authorMarco Peereboom <marco@cvs.openbsd.org>2006-04-18 16:29:55 +0000
committerMarco Peereboom <marco@cvs.openbsd.org>2006-04-18 16:29:55 +0000
commitbae5febc111d5c6df5f025a4bf16f46c6aad435a (patch)
tree1568de52954feb39e0bd9b4f9101d32a34ed5ada /sys/dev/ic/mfi.c
parent50e3440cd4a7da15595757cdd41f82774957d496 (diff)
It helps to initialize a queue before usage.
Diffstat (limited to 'sys/dev/ic/mfi.c')
-rw-r--r--sys/dev/ic/mfi.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/ic/mfi.c b/sys/dev/ic/mfi.c
index fc330c1c77d..5cfa276c831 100644
--- a/sys/dev/ic/mfi.c
+++ b/sys/dev/ic/mfi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mfi.c,v 1.18 2006/04/18 00:21:06 marco Exp $ */
+/* $OpenBSD: mfi.c,v 1.19 2006/04/18 16:29:54 marco Exp $ */
/*
* Copyright (c) 2006 Marco Peereboom <marco@peereboom.us>
*
@@ -49,7 +49,7 @@ uint32_t mfi_debug = 0
| MFI_D_IOCTL
/* | MFI_D_RW */
| MFI_D_MEM
- | MFI_D_CCB
+/* | MFI_D_CCB */
;
#endif
@@ -336,6 +336,8 @@ mfi_attach(struct mfi_softc *sc)
if (mfi_transition_firmware(sc))
return (1);
+ TAILQ_INIT(&sc->sc_ccb_freeq);
+
status = mfi_read(sc, MFI_OMSG0);
sc->sc_max_cmds = status & MFI_STATE_MAXCMD_MASK;
sc->sc_max_sgl = (status & MFI_STATE_MAXSGL_MASK) >> 16;