]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
be2net: Replace dma/pci_alloc_coherent() calls with dma_zalloc_coherent()
authorSriharsha Basavapatna <sriharsha.basavapatna@avagotech.com>
Fri, 5 Jun 2015 10:03:59 +0000 (15:33 +0530)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 15 Jun 2015 18:26:54 +0000 (14:26 -0400)
commitf938f18c8c6babf8200ea1007b20ea784aae243f
tree9cf8f269154fa3d8a0e6d5ae296d0e8b49051769
parenteee3f32977fe915c59a5abf5e312d66ac387d389
be2net: Replace dma/pci_alloc_coherent() calls with dma_zalloc_coherent()

[ Upstream commit e51000db4c880165eab06ec0990605f24e75203f ]

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>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/net/ethernet/emulex/benet/be_cmds.c
drivers/net/ethernet/emulex/benet/be_ethtool.c
drivers/net/ethernet/emulex/benet/be_main.c