diff options
author | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2007-09-09 01:00:36 +0000 |
---|---|---|
committer | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2007-09-09 01:00:36 +0000 |
commit | 1651c8d3c87ffaf30a439076f7d1fa43964eff57 (patch) | |
tree | b8e03037eca2725925c132699ad7ece3ab73b3d0 /sys/dev/usb/uaudio.c | |
parent | ef21376f2d5bc87fa993d2eb3175fa12e24c1bee (diff) |
more M_ZERO conversions; ok krw@.
Diffstat (limited to 'sys/dev/usb/uaudio.c')
-rw-r--r-- | sys/dev/usb/uaudio.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/usb/uaudio.c b/sys/dev/usb/uaudio.c index df7645b5f77..dced36df11f 100644 --- a/sys/dev/usb/uaudio.c +++ b/sys/dev/usb/uaudio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uaudio.c,v 1.49 2007/09/08 17:34:54 ratchov Exp $ */ +/* $OpenBSD: uaudio.c,v 1.50 2007/09/09 01:00:35 fgsch Exp $ */ /* $NetBSD: uaudio.c,v 1.90 2004/10/29 17:12:53 kent Exp $ */ /* @@ -1827,12 +1827,11 @@ uaudio_identify_ac(struct uaudio_softc *sc, const usb_config_descriptor_t *cdesc ibufend = ibuf + aclen; dp = (const usb_descriptor_t *)ibuf; ndps = 0; - iot = malloc(sizeof(struct io_terminal) * 256, M_TEMP, M_NOWAIT); + iot = malloc(sizeof(struct io_terminal) * 256, M_TEMP, M_NOWAIT|M_ZERO); if (iot == NULL) { printf("%s: no memory\n", __func__); return USBD_NOMEM; } - bzero(iot, sizeof(struct io_terminal) * 256); for (;;) { ibuf += dp->bLength; if (ibuf >= ibufend) |