From: Sriharsha Basavapatna Date: Fri, 5 Jun 2015 10:03:59 +0000 (+0530) Subject: be2net: Replace dma/pci_alloc_coherent() calls with dma_zalloc_coherent() X-Git-Tag: omap-for-v4.3/legacy-v2-signed~243^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e51000db4c880165eab06ec0990605f24e75203f;p=pandora-kernel.git be2net: Replace dma/pci_alloc_coherent() calls with dma_zalloc_coherent() There are several places in the driver (all in control paths) where coherent dma memory is being allocated using either dma_alloc_coherent() or the deprecated pci_alloc_consistent(). All these calls should be changed to use dma_zalloc_coherent() to avoid uninitialized fields in data structures backed by this memory. Reported-by: Joerg Roedel Tested-by: Joerg Roedel Signed-off-by: Sriharsha Basavapatna Signed-off-by: David S. Miller --- Reading git-diff-tree failed