diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2006-08-28 01:34:53 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2006-08-28 01:34:53 +0000 |
commit | b0901da970d1df2483f5b089537ebd118aeeffcf (patch) | |
tree | 47491d39f0cc4525d3894b890a72fddde30c1f85 /sys | |
parent | 4fcee99a5ec31954e1cad381029c455bf73b9140 (diff) |
bzero() the sensor memory after allocating it.
ok marco@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ic/ami.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ic/ami.c b/sys/dev/ic/ami.c index 7a2c7fe5ef3..570bd58d871 100644 --- a/sys/dev/ic/ami.c +++ b/sys/dev/ic/ami.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ami.c,v 1.172 2006/08/03 09:06:51 dlg Exp $ */ +/* $OpenBSD: ami.c,v 1.173 2006/08/28 01:34:52 krw Exp $ */ /* * Copyright (c) 2001 Michael Shalayeff @@ -2439,6 +2439,7 @@ ami_create_sensors(struct ami_softc *sc) M_DEVBUF, M_WAITOK); if (sc->sc_sensors == NULL) return (1); + bzero(sc->sc_sensors, sizeof(struct sensor) * sc->sc_nunits); for (i = 0; i < sc->sc_nunits; i++) { if (ssc->sc_link[i][0] == NULL) |