]> git.baikalelectronics.ru Git - kernel.git/commit
mt76: fix double DMA unmap of the first buffer on 7615/7915
authorFelix Fietkau <nbd@nbd.name>
Sat, 25 Jul 2020 12:44:07 +0000 (14:44 +0200)
committerFelix Fietkau <nbd@nbd.name>
Thu, 24 Sep 2020 16:10:13 +0000 (18:10 +0200)
commitc64fa2b2d9119993f5ee2cad49cc8958945c30ac
tree77c1fb9608ea744470aa3833359f4ae2f14d391b
parentf7b33b8d6997d8091c245d0ec8b2c2678e69f867
mt76: fix double DMA unmap of the first buffer on 7615/7915

A small part of the first skb buffer is passed to the firmware for parsing
via DMA, while the full buffer is passed as part of the TXP.

Avoid calling DMA unmap on the first part (with a different length than map)

Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/dma.c
drivers/net/wireless/mediatek/mt76/mt76.h
drivers/net/wireless/mediatek/mt76/mt7615/pci_mac.c
drivers/net/wireless/mediatek/mt76/mt7915/mac.c