Don't use the ALLOCNOW flag for tags that will only be used for static

allocations.
This commit is contained in:
Scott Long 2006-01-10 22:55:35 +00:00
parent 85bfb1d55c
commit 2ffb18fec1

View File

@ -171,12 +171,12 @@ usb_block_allocmem(bus_dma_tag_t tag, size_t size, size_t align,
if (bus_dma_tag_create(tag, align, 0,
BUS_SPACE_MAXADDR_32BIT, BUS_SPACE_MAXADDR, NULL, NULL,
size, sizeof(p->segs) / sizeof(p->segs[0]), size,
BUS_DMA_ALLOCNOW, NULL, NULL, &p->tag) == ENOMEM)
0, NULL, NULL, &p->tag) == ENOMEM)
#else
if (bus_dma_tag_create(tag, align, 0,
BUS_SPACE_MAXADDR_32BIT, BUS_SPACE_MAXADDR, NULL, NULL,
size, sizeof(p->segs) / sizeof(p->segs[0]), size,
BUS_DMA_ALLOCNOW, &p->tag) == ENOMEM)
0, &p->tag) == ENOMEM)
#endif
{
goto free;