diff options
author | 2007-09-10 16:29:28 +0000 | |
---|---|---|
committer | 2007-09-10 16:29:28 +0000 | |
commit | 45235b13091f418520ced319dc8e3a915f5b7976 (patch) | |
tree | 254fba1f4b943b1857a01391563d4166dbf36b63 /sys/dev/usb/uhci.c | |
parent | Proper use of fseek/fseeko macros. (diff) | |
download | wireguard-openbsd-45235b13091f418520ced319dc8e3a915f5b7976.tar.xz wireguard-openbsd-45235b13091f418520ced319dc8e3a915f5b7976.zip |
more M_ZERO usage.
Diffstat (limited to '')
-rw-r--r-- | sys/dev/usb/uhci.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/usb/uhci.c b/sys/dev/usb/uhci.c index 01c31b14e3f..499a2e2f3b4 100644 --- a/sys/dev/usb/uhci.c +++ b/sys/dev/usb/uhci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uhci.c,v 1.61 2007/07/20 14:31:17 mbalmer Exp $ */ +/* $OpenBSD: uhci.c,v 1.62 2007/09/10 16:29:28 fgsch Exp $ */ /* $NetBSD: uhci.c,v 1.172 2003/02/23 04:19:26 simonb Exp $ */ /* $FreeBSD: src/sys/dev/usb/uhci.c,v 1.33 1999/11/17 22:33:41 n_hibma Exp $ */ @@ -577,10 +577,9 @@ uhci_allocm(struct usbd_bus *bus, usb_dma_t *dma, u_int32_t size) uhci_soft_td_t **stds; DPRINTF(("uhci_allocm: get %d TDs\n", n)); stds = malloc(sizeof(uhci_soft_td_t *) * n, M_TEMP, - M_NOWAIT); + M_NOWAIT|M_ZERO); if (stds == NULL) panic("uhci_allocm"); - memset(stds, 0, sizeof(uhci_soft_td_t *) * n); for(i=0; i < n; i++) stds[i] = uhci_alloc_std(sc); for(i=0; i < n; i++) |