Skip to content

Commit 79ed4e9

Browse files
nbd168gregkh
authored andcommitted
wifi: mt76: free pending offchannel tx frames on wcid cleanup
[ Upstream commit bdeac78 ] Avoid leaking them or keeping the wcid on the tx list Fixes: 0b3be9d ("wifi: mt76: add separate tx scheduling queue for off-channel tx") Link: https://patch.msgid.link/20250827085352.51636-5-nbd@nbd.name Signed-off-by: Felix Fietkau <nbd@nbd.name> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 8fa8eb5 commit 79ed4e9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/net/wireless/mediatek/mt76/mac80211.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1716,6 +1716,10 @@ void mt76_wcid_cleanup(struct mt76_dev *dev, struct mt76_wcid *wcid)
17161716
skb_queue_splice_tail_init(&wcid->tx_pending, &list);
17171717
spin_unlock(&wcid->tx_pending.lock);
17181718

1719+
spin_lock(&wcid->tx_offchannel.lock);
1720+
skb_queue_splice_tail_init(&wcid->tx_offchannel, &list);
1721+
spin_unlock(&wcid->tx_offchannel.lock);
1722+
17191723
spin_unlock_bh(&phy->tx_lock);
17201724

17211725
while ((skb = __skb_dequeue(&list)) != NULL) {

0 commit comments

Comments
 (0)