From e1106c535398aa51a47a432446c04c709ca77cf6 Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Tue, 26 Jun 2001 10:47:37 +0000 Subject: initialize sw and fix the the mb length --- sys/dev/i2o/iop.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys') 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 */ -- cgit v1.2.3