mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
net: ocelot: use dma_unmap_addr to get tx buffer dma_addr
dma_addr was declared using DEFINE_DMA_UNMAP_ADDR() which requires to
use dma_unmap_addr() to access it.
Reported-by: kernel test robot <lkp@intel.com>
Fixes: 753a026cfe
("net: ocelot: add FDMA support")
Signed-off-by: Clément Léger <clement.leger@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
b26980ab2a
commit
3cfcda2aee
1 changed files with 2 additions and 2 deletions
|
@ -734,8 +734,8 @@ static void ocelot_fdma_free_tx_ring(struct ocelot *ocelot)
|
|||
while (idx != tx_ring->next_to_use) {
|
||||
txb = &tx_ring->bufs[idx];
|
||||
skb = txb->skb;
|
||||
dma_unmap_single(ocelot->dev, txb->dma_addr, skb->len,
|
||||
DMA_TO_DEVICE);
|
||||
dma_unmap_single(ocelot->dev, dma_unmap_addr(txb, dma_addr),
|
||||
skb->len, DMA_TO_DEVICE);
|
||||
dev_kfree_skb_any(skb);
|
||||
idx = ocelot_fdma_idx_next(idx, OCELOT_FDMA_TX_RING_SIZE);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue