]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mt76: mt7915: fix possible memory leak in mt7915_mcu_add_beacon
authorLorenzo Bianconi <lorenzo@kernel.org>
Mon, 14 Sep 2020 18:29:01 +0000 (20:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Oct 2020 09:07:44 +0000 (10:07 +0100)
commit3efc30bcd1629c6be616fdbae5ff5d3c44e279d7
treeb3a0145c53cd7b7edfeb489197753a06c3cf74ba
parent6f0f3ad5a6020a7a73dcc8f41dd375db393c6443
mt76: mt7915: fix possible memory leak in mt7915_mcu_add_beacon

[ Upstream commit 071c8ce8e92a86b8bf78678e78eb4b79fdc16768 ]

Release mcu message memory in case of failure in mt7915_mcu_add_beacon
routine

Fixes: e57b7901469fc ("mt76: add mac80211 driver for MT7915 PCIe-based chipsets")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/mediatek/mt76/mt7915/mcu.c