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)
commit2a9e9857473bfc5721092ff274bc1e371e5a0d2f
treec57c30630360bb156d8dafe3c7a90b907c1ff3b9
parentebb75b1b43d3e2bafc4d33eb4b1ae9c8d2759771
mt76: fix possible pktid leak

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

Fixes: bd1e3e7b693c ("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