summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2001-06-26 10:47:37 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2001-06-26 10:47:37 +0000
commite1106c535398aa51a47a432446c04c709ca77cf6 (patch)
tree7c34724a07d1655a822b5d02b1014285d321e888 /sys/dev
parent6673d2cc04327f153d423a27357dcbcee11490b4 (diff)
initialize sw and fix the the mb length
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/i2o/iop.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/i2o/iop.c b/sys/dev/i2o/iop.c
index 50362ab438f..bfb88ebfae5 100644
--- a/sys/dev/i2o/iop.c
+++ b/sys/dev/i2o/iop.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: iop.c,v 1.7 2001/06/26 10:18:21 mickey Exp $ */
+/* $OpenBSD: iop.c,v 1.8 2001/06/26 10:47:36 mickey Exp $ */
/* $NetBSD: iop.c,v 1.12 2001/03/21 14:27:05 ad Exp $ */
/*-
@@ -943,7 +943,7 @@ iop_ofifo_init(struct iop_softc *sc)
bus_dma_segment_t seg;
struct i2o_exec_outbound_init *mf;
u_int32_t mb[IOP_MAX_MSG_SIZE / sizeof(u_int32_t)];
- u_int32_t *sw;
+ u_int32_t *sw = (u_int32_t *)sc->sc_scr;
int i, rseg, rv;
mf = (struct i2o_exec_outbound_init *)mb;
@@ -966,7 +966,7 @@ iop_ofifo_init(struct iop_softc *sc)
* that if you don't want to get the list of MFAs, an IGNORE SGL is
* necessary; this isn't the case (and is in fact a bad thing).
*/
- if ((rv = iop_post(sc, mb, sizeof(*mf))))
+ if ((rv = iop_post(sc, mb, sizeof(*mf) + 2 * sizeof(*mb))))
return (rv);
/* XXX */