don't pass "maxaddr" as a boundary in bus_dmamap_create() like rev 1.8

did for _alloc().
This commit is contained in:
mrg 2010-03-20 02:53:35 +00:00
parent 9a70d7bce8
commit c8c2757eb3
1 changed files with 1 additions and 1 deletions

View File

@ -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);