]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mt76: mt7915: fix possible memory leak in mt7915_mcu_add_sta
authorLorenzo Bianconi <lorenzo@kernel.org>
Mon, 24 Jan 2022 19:36:52 +0000 (20:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 11:58:02 +0000 (13:58 +0200)
commitb334a245ff1d76b1e97af8cea648ea6798b9eb87
treee9eeb7bfbf4c043bdecedef55df05b19562a75c8
parent5c2ef67f48372a25c04be5598a7ccd69d741515c
mt76: mt7915: fix possible memory leak in mt7915_mcu_add_sta

[ Upstream commit a43736cd12d82913102eb49cb56787a5553e028f ]

Free allocated skb in mt7915_mcu_add_sta routine in case of failures.

Fixes: 89bbd3730f382 ("mt76: mt7915: rework starec TLV tags")
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