https://github.com/torvalds/linux
Revision e51000db4c880165eab06ec0990605f24e75203f authored by Sriharsha Basavapatna on 05 June 2015, 10:03:59 UTC, committed by David S. Miller on 07 June 2015, 22:35:11 UTC
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 <jroedel@suse.de>
Tested-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Sriharsha Basavapatna <sriharsha.basavapatna@avagotech.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 1d7c490
History
Tip revision: e51000db4c880165eab06ec0990605f24e75203f authored by Sriharsha Basavapatna on 05 June 2015, 10:03:59 UTC
be2net: Replace dma/pci_alloc_coherent() calls with dma_zalloc_coherent()
Tip revision: e51000d
File Mode Size
Kconfig -rw-r--r-- 64.5 KB
Makefile -rw-r--r-- 1.1 KB
calibrate.c -rw-r--r-- 8.5 KB
do_mounts.c -rw-r--r-- 14.5 KB
do_mounts.h -rw-r--r-- 1.4 KB
do_mounts_initrd.c -rw-r--r-- 3.4 KB
do_mounts_md.c -rw-r--r-- 8.2 KB
do_mounts_rd.c -rw-r--r-- 8.7 KB
init_task.c -rw-r--r-- 728 bytes
initramfs.c -rw-r--r-- 13.8 KB
main.c -rw-r--r-- 24.6 KB
noinitramfs.c -rw-r--r-- 1.5 KB
version.c -rw-r--r-- 1.2 KB

back to top