summaryrefslogtreecommitdiffstats
path: root/sys/amd64/amd64/busdma_machdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/amd64/amd64/busdma_machdep.c')
-rw-r--r--sys/amd64/amd64/busdma_machdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/amd64/busdma_machdep.c b/sys/amd64/amd64/busdma_machdep.c
index a5a20fc..8f5898f 100644
--- a/sys/amd64/amd64/busdma_machdep.c
+++ b/sys/amd64/amd64/busdma_machdep.c
@@ -341,7 +341,7 @@ bus_dmamem_alloc_size(bus_dma_tag_t dmat, void** vaddr, int flags,
if ((size <= PAGE_SIZE) && dmat->lowaddr >= ptoa(Maxmem)) {
*vaddr = malloc(size, M_DEVBUF,
- (flags & BUS_DMA_NOWAIT) ? M_NOWAIT : 0);
+ (flags & BUS_DMA_NOWAIT) ? M_NOWAIT : M_WAITOK);
} else {
/*
* XXX Use Contigmalloc until it is merged into this facility
@@ -349,7 +349,7 @@ bus_dmamem_alloc_size(bus_dma_tag_t dmat, void** vaddr, int flags,
* multi-seg allocations yet though.
*/
*vaddr = contigmalloc(size, M_DEVBUF,
- (flags & BUS_DMA_NOWAIT) ? M_NOWAIT : 0,
+ (flags & BUS_DMA_NOWAIT) ? M_NOWAIT : M_WAITOK,
0ul, dmat->lowaddr, dmat->alignment? dmat->alignment : 1ul,
dmat->boundary);
}
OpenPOWER on IntegriCloud