don't pass "maxaddr" as a boundary in bus_dmamap_create() like rev 1.8
did for _alloc().
This commit is contained in:
parent
9a70d7bce8
commit
c8c2757eb3
|
@ -137,7 +137,7 @@ drm_pci_alloc(struct drm_device *dev, size_t size,
|
|||
free(dmah, DRM_MEM_DMA);
|
||||
return NULL;
|
||||
}
|
||||
if ((ret = bus_dmamap_create(dmah->tag, size, 1, size, maxaddr,
|
||||
if ((ret = bus_dmamap_create(dmah->tag, size, 1, size, 0,
|
||||
BUS_DMA_NOWAIT, &dmah->map)) != 0) {
|
||||
printf("drm: Unable to create DMA map, error %d\n", ret);
|
||||
bus_dmamem_unmap(dmah->tag, dmah->vaddr, size);
|
||||
|
|
Loading…
Reference in New Issue