summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/wd_cd.c
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>1999-01-31 23:08:47 +0000
committersos <sos@FreeBSD.org>1999-01-31 23:08:47 +0000
commit1f20179a0d4813213ae08a590325ae9a4b647187 (patch)
treeeee523d8f078a212a12498b83fde525a7f168d7a /sys/i386/isa/wd_cd.c
parent01e8e49aa19b9e64c43644bdbc1a88277652137c (diff)
downloadFreeBSD-src-1f20179a0d4813213ae08a590325ae9a4b647187.zip
FreeBSD-src-1f20179a0d4813213ae08a590325ae9a4b647187.tar.gz
Bzero the devstat structure before use.
Pointed out by: <Kenneth Merry> ken@plutotech.com
Diffstat (limited to 'sys/i386/isa/wd_cd.c')
-rw-r--r--sys/i386/isa/wd_cd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/i386/isa/wd_cd.c b/sys/i386/isa/wd_cd.c
index 523ca69..be09c36 100644
--- a/sys/i386/isa/wd_cd.c
+++ b/sys/i386/isa/wd_cd.c
@@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: atapi-cd.c,v 1.8 1999/01/30 12:21:43 phk Exp $
+ * $Id: atapi-cd.c,v 1.9 1999/01/31 21:51:03 sos Exp $
*/
#include "wdc.h"
@@ -133,6 +133,7 @@ acd_init_lun(struct atapi *ata, int unit, struct atapi_params *ap, int lun,
if (!(ptr->device_stats = malloc(sizeof(struct devstat),
M_TEMP, M_NOWAIT)))
return NULL;
+ bzero(ptr->device_stats, sizeof(struct devstat));
}
else
ptr->device_stats = device_stats;
OpenPOWER on IntegriCloud