]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mt76: mt7615: fix possible memory leak in mt7615_mcu_wtbl_sta_add
authorLorenzo Bianconi <lorenzo@kernel.org>
Tue, 21 Jul 2020 08:19:22 +0000 (10:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Aug 2020 06:23:58 +0000 (08:23 +0200)
commit50fa9179d0a6d7b608395130cb3ff7be944a9323
tree5ea7bf17860eb0447e54e840ec886f1360566775
parent4475bd356c03b559546a0cb0aef6b67d66a8e066
mt76: mt7615: fix possible memory leak in mt7615_mcu_wtbl_sta_add

[ Upstream commit 2bccc8415883c1cd5ae8836548d9783dbbd84999 ]

Free the second mcu skb if __mt76_mcu_skb_send_msg() fails to transmit
the first one in mt7615_mcu_wtbl_sta_add().

Fixes: 99c457d902cf9 ("mt76: mt7615: move mt7615_mcu_set_bmc to mt7615_mcu_ops")
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/mt7615/mcu.c