since no boundary restrictions apply, a zero boundary argument to
bus_dmamem_alloc() is the right thing
This commit is contained in:
parent
7a0663bdb7
commit
d414de4f1a
|
@ -106,7 +106,7 @@ drm_pci_alloc(drm_device_t *dev, size_t size, size_t align, dma_addr_t maxaddr)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
#elif defined(__NetBSD__)
|
#elif defined(__NetBSD__)
|
||||||
ret = bus_dmamem_alloc(dev->pa.pa_dmat, size, align, size,
|
ret = bus_dmamem_alloc(dev->pa.pa_dmat, size, align, 0,
|
||||||
&dmah->seg, 1, &nsegs, BUS_DMA_NOWAIT);
|
&dmah->seg, 1, &nsegs, BUS_DMA_NOWAIT);
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
aprint_error("%s: bus_dmamem_alloc(%zd, %zd) returned %d\n",
|
aprint_error("%s: bus_dmamem_alloc(%zd, %zd) returned %d\n",
|
||||||
|
|
Loading…
Reference in New Issue