mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-25 20:10:23 +09:00
mt76: mt7615: fix tx skb dma unmap
[ Upstream commitebee7885bb] The first pointer in the txp needs to be unmapped as well, otherwise it will leak DMA mapping entries Fixes:27d5c528a7("mt76: fix double DMA unmap of the first buffer on 7615/7915") Signed-off-by: Felix Fietkau <nbd@nbd.name> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
3443c54c41
commit
75bc5f779a
@@ -688,7 +688,7 @@ mt7615_txp_skb_unmap_fw(struct mt76_dev *dev, struct mt7615_fw_txp *txp)
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i = 1; i < txp->nbuf; i++)
|
||||
for (i = 0; i < txp->nbuf; i++)
|
||||
dma_unmap_single(dev->dev, le32_to_cpu(txp->buf[i]),
|
||||
le16_to_cpu(txp->len[i]), DMA_TO_DEVICE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user