]> git.baikalelectronics.ru Git - kernel.git/commit
mt76: fix possible pktid leak
authorLorenzo Bianconi <lorenzo@kernel.org>
Mon, 22 Nov 2021 17:34:03 +0000 (18:34 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 24 Nov 2021 17:21:50 +0000 (19:21 +0200)
commit6a9bf021441dd60c65750f114c534a92daf01ae0
treec57c30630360bb156d8dafe3c7a90b907c1ff3b9
parent68c855f2f3b43acc8478be96922c99323d394217
mt76: fix possible pktid leak

Fix a possible idr pkt-id leak if the packet is dropped on tx side

Fixes: b60d9d1109f1 ("mt76: introduce packet_id idr")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Acked-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/a560caffcc24452fb48af53904bbe5c45ea5db93.1637602268.git.lorenzo@kernel.org
drivers/net/wireless/mediatek/mt76/mt7615/pci_mac.c
drivers/net/wireless/mediatek/mt76/mt7615/usb_sdio.c
drivers/net/wireless/mediatek/mt76/mt76x02_usb_core.c
drivers/net/wireless/mediatek/mt76/mt7915/mac.c
drivers/net/wireless/mediatek/mt76/mt7921/sdio_mac.c