diff options
author | Felix Fietkau <[email protected]> | 2021-02-16 14:51:18 +0100 |
---|---|---|
committer | Kalle Valo <[email protected]> | 2021-02-18 08:09:09 +0200 |
commit | ae064fc0e32a4d28389086d9f4b260a0c157cfee (patch) | |
tree | 3628e7ce4f7291178f3ae132fddfa787b2772e15 /tools/perf/scripts/python/stackcollapse.py | |
parent | 3b9ea7206d7e1fdd7419cbd10badd3b2c80d04b4 (diff) |
mt76: fix tx skb error handling in mt76_dma_tx_queue_skb
When running out of room in the tx queue after calling drv->tx_prepare_skb,
the buffer list will already have been modified on MT7615 and newer drivers.
This can leak a DMA mapping and will show up as swiotlb allocation failures
on x86.
Fix this by moving the queue length check further up. This is less accurate,
since it can overestimate the needed room in the queue on MT7615 and newer,
but the difference is small enough to not matter in practice.
Signed-off-by: Felix Fietkau <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions