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

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

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

Reported-by: Ben Greear <greearb@candelatech.com>
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/mt7915/mac.c