From b0901da970d1df2483f5b089537ebd118aeeffcf Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Mon, 28 Aug 2006 01:34:53 +0000 Subject: bzero() the sensor memory after allocating it. ok marco@ --- sys/dev/ic/ami.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys') 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) -- cgit v1.2.3