mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
MFNetBSD:
revision 1.151 date: 2002/01/27 23:00:34; author: augustss; state: Exp; lines: +3 -3 Use M_WAITOK instead of M_NOWAIT when allocating extra descriptors. Spotted by OpenBSD.
This commit is contained in:
parent
3ccc9447a9
commit
de36d7b363
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=94137
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: uhci.c,v 1.150 2002/01/14 13:23:37 tsutsui Exp $ */
|
||||
/* $NetBSD: uhci.c,v 1.151 2002/01/27 23:00:34 augustss Exp $ */
|
||||
/* $FreeBSD$ */
|
||||
|
||||
/*
|
||||
@ -589,7 +589,7 @@ 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_ZERO);
|
||||
M_WAITOK|M_ZERO);
|
||||
for(i=0; i < n; i++)
|
||||
stds[i] = uhci_alloc_std(sc);
|
||||
for(i=0; i < n; i++)
|
||||
|
Loading…
Reference in New Issue
Block a user