X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_eal%2Flinuxapp%2Figb_uio%2Figb_uio.c;h=192bd4a96b68c2cf45b328041272ca12bcf66ab6;hb=de9b91e8576f21774ce103d295dc56877d3e3fa7;hp=41bf6ea39a0985762868c95a2121a40eae62a16e;hpb=f0d1896fa14385dc9b16065594012cdc8a449ee1;p=dpdk.git diff --git a/lib/librte_eal/linuxapp/igb_uio/igb_uio.c b/lib/librte_eal/linuxapp/igb_uio/igb_uio.c index 41bf6ea39a..192bd4a96b 100644 --- a/lib/librte_eal/linuxapp/igb_uio/igb_uio.c +++ b/lib/librte_eal/linuxapp/igb_uio/igb_uio.c @@ -431,8 +431,10 @@ igbuio_pci_probe(struct pci_dev *dev, const struct pci_device_id *id) * the iommu identity mapping if kernel boots with iommu=pt. * Note this is not a problem if no IOMMU at all. */ - map_addr = dma_zalloc_coherent(&dev->dev, 1024, - &map_dma_addr, GFP_KERNEL); + map_addr = dma_alloc_coherent(&dev->dev, 1024, &map_dma_addr, + GFP_KERNEL); + if (map_addr) + memset(map_addr, 0, 1024); if (!map_addr) dev_info(&dev->dev, "dma mapping failed\n");