bfe(4): Add missing BUS_DMA_WAITOK
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sat, 17 Jan 2009 10:35:38 +0000 (18:35 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Tue, 17 Feb 2009 10:35:08 +0000 (18:35 +0800)
sys/dev/netif/bfe/if_bfe.c

index d89da1d..0acaec2 100644 (file)
@@ -254,7 +254,8 @@ bfe_dma_alloc(device_t dev)
                return(error);
        }
 
-       error = bus_dmamap_create(sc->bfe_rxbuf_tag, 0, &sc->bfe_rx_tmpmap);
+       error = bus_dmamap_create(sc->bfe_rxbuf_tag, BUS_DMA_WAITOK,
+                                 &sc->bfe_rx_tmpmap);
        if (error) {
                device_printf(dev, "could not create RX mbuf tmp map\n");
                bus_dma_tag_destroy(sc->bfe_rxbuf_tag);