diff options
author | Alexander Lobakin <alobakin@marvell.com> | 2020-07-23 01:10:35 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-07-23 04:19:03 +0300 |
commit | 9b6ee3cf95d322ab02e9927f5b08ebc870ca9f1f (patch) | |
tree | 08bd8489f541676ab787ef9249beb2a925da2e7e /drivers/net/ethernet/tundra | |
parent | 96ca4c50c7f711531d4fa238906f8abbbd0ff517 (diff) | |
download | linux-9b6ee3cf95d322ab02e9927f5b08ebc870ca9f1f.tar.xz |
qed: sanitize PBL chains allocation
PBL chain elements are actually DMA addresses stored in __le64, but
currently their size is hardcoded to 8, and DMA addresses are assigned
via cast to variable-sized dma_addr_t without any bitwise conversions.
Change the type of pbl_virt array to match the actual one, add a new
field to store the size of allocated DMA memory and sanitize elements
assignment.
Misc: give more logic names to the members of qed_chain::pbl_sp embedded
struct.
Signed-off-by: Alexander Lobakin <alobakin@marvell.com>
Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
Signed-off-by: Michal Kalderon <michal.kalderon@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/tundra')
0 files changed, 0 insertions, 0 deletions