mt76: mt7915: only modify tx buffer list after allocating tx token id
authorFelix Fietkau <nbd@nbd.name>
Tue, 16 Feb 2021 13:51:19 +0000 (14:51 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 18 Feb 2021 06:09:10 +0000 (08:09 +0200)
commit94f0e6256c2ab6803c935634aa1f653174c94879
tree886184597e92ea04d95979af5969ee13a275c4ec
parentae064fc0e32a4d28389086d9f4b260a0c157cfee
mt76: mt7915: only modify tx buffer list after allocating tx token id

Modifying the tx buffer list too early can leak DMA mappings

Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210216135119.23809-2-nbd@nbd.name
drivers/net/wireless/mediatek/mt76/mt7915/mac.c