]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Sun, 7 Jun 2015 22:35:11 +0000 (15:35 -0700)
commit456a691ad4d4aa8b823db1048459cd80becc76f7
tree09ef9f59b2984e5378ba5b95a4a1fffda3bf05e4
parent8ecbce9ffc2ba2d5e36bfe10c5223c12e4ec79c8
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 <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>
drivers/net/ethernet/emulex/benet/be_cmds.c
drivers/net/ethernet/emulex/benet/be_ethtool.c
drivers/net/ethernet/emulex/benet/be_main.c