From d414de4f1a95f25445f6592432eb8abeb2ce8d73 Mon Sep 17 00:00:00 2001 From: drochner Date: Wed, 21 Mar 2007 17:15:53 +0000 Subject: [PATCH] since no boundary restrictions apply, a zero boundary argument to bus_dmamem_alloc() is the right thing --- sys/dev/drm/drm_pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/drm/drm_pci.c b/sys/dev/drm/drm_pci.c index 05ada44c1584..41c6f7a8a16a 100644 --- a/sys/dev/drm/drm_pci.c +++ b/sys/dev/drm/drm_pci.c @@ -106,7 +106,7 @@ drm_pci_alloc(drm_device_t *dev, size_t size, size_t align, dma_addr_t maxaddr) return NULL; } #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); if (ret != 0) { aprint_error("%s: bus_dmamem_alloc(%zd, %zd) returned %d\n",