]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
mt76: mt7615: fix tx skb dma unmap
authorFelix Fietkau <nbd@nbd.name>
Sat, 13 Feb 2021 17:42:15 +0000 (18:42 +0100)
committerKelsey Skunberg <kelsey.skunberg@canonical.com>
Mon, 24 May 2021 23:46:36 +0000 (17:46 -0600)
commitc55974f99ff7909181f21c5015e2feeb8734dc7a
treeaf87ca9ea271976ee07bf08a0dda327ee5939cc0
parent2afa91458ae7b9718323ab53f5c8b5184e29fdcd
mt76: mt7615: fix tx skb dma unmap

BugLink: https://bugs.launchpad.net/bugs/1929455
[ Upstream commit ebee7885bb12a8fe2c2f9bac87dbd87a05b645f9 ]

The first pointer in the txp needs to be unmapped as well, otherwise it will
leak DMA mapping entries

Fixes: 27d5c528a7ca ("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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/net/wireless/mediatek/mt76/mt7615/mac.c