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)
committerFelix Fietkau <nbd@nbd.name>
Tue, 21 Jul 2020 17:01:18 +0000 (19:01 +0200)
commit2bccc8415883c1cd5ae8836548d9783dbbd84999
tree7b0ed8cde7290f64d1cade11b764e2639722592d
parent4c7e1711cf4cdaf7124d3794c42c1b29af72740b
mt76: mt7615: fix possible memory leak in mt7615_mcu_wtbl_sta_add

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>
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c