wifi: mt76: mt7921: resource leaks at mt7921_check_offload_capability()
authorSean Wang <sean.wang@mediatek.com>
Thu, 8 Dec 2022 23:01:57 +0000 (07:01 +0800)
committerFelix Fietkau <nbd@nbd.name>
Fri, 9 Dec 2022 15:45:39 +0000 (16:45 +0100)
commit47180ecf4541146836c5307c1d5526f8ac6a5a6d
tree45f6e5f46662ad41ef7c3c90974677ef1ee8172b
parent4493acad5b334ed0b45e374135acc6d6aaa9755c
wifi: mt76: mt7921: resource leaks at mt7921_check_offload_capability()

Fixed coverity issue with resource leaks at variable "fw" going out of
scope leaks the storage it points to mt7921_check_offload_capability().

Reported-by: coverity-bot <keescook+coverity-bot@chromium.org>
Addresses-Coverity-ID: 1527806 ("Resource leaks")
Fixes: 034ae28b56f1 ("wifi: mt76: mt7921: introduce remain_on_channel support")
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7921/init.c