diff options
author | Anil Madhavapeddy <avsm@cvs.openbsd.org> | 2003-09-04 03:45:54 +0000 |
---|---|---|
committer | Anil Madhavapeddy <avsm@cvs.openbsd.org> | 2003-09-04 03:45:54 +0000 |
commit | efa09d65b255404206c9d77416aed49ee701fda3 (patch) | |
tree | 21046898fe85409b1ec16f34a713b27a400917e2 /sys/dev/i2o | |
parent | 10df1b7ad612eba5b72896550ee27a3198a9108e (diff) |
bzero the full malloced space, not the sizeof the pointer
ok tedu fgsch deraadt
Diffstat (limited to 'sys/dev/i2o')
-rw-r--r-- | sys/dev/i2o/iop.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/i2o/iop.c b/sys/dev/i2o/iop.c index f0b8bf8f2ce..a152f226994 100644 --- a/sys/dev/i2o/iop.c +++ b/sys/dev/i2o/iop.c @@ -1,4 +1,4 @@ -/* $OpenBSD: iop.c,v 1.23 2003/04/27 11:22:52 ho Exp $ */ +/* $OpenBSD: iop.c,v 1.24 2003/09/04 03:45:53 avsm Exp $ */ /* $NetBSD: iop.c,v 1.12 2001/03/21 14:27:05 ad Exp $ */ /*- @@ -690,7 +690,7 @@ iop_reconfigure(struct iop_softc *sc, u_int chgind) DPRINTF(("iop_reconfigure: out of memory\n")); return (ENOMEM); } - bzero(sc->sc_tidmap, sizeof(sc->sc_tidmap)); + bzero(sc->sc_tidmap, sc->sc_nlctent * sizeof(struct iop_tidmap)); /* Allow 1 queued command per device while we're configuring. */ iop_adjqparam(sc, 1); |