mt76: mt76u: add missing release on skb in __mt76x02u_mcu_send_msg
authorNavid Emamdoost <navid.emamdoost@gmail.com>
Sat, 18 Jul 2020 05:47:26 +0000 (00:47 -0500)
committerFelix Fietkau <nbd@nbd.name>
Tue, 21 Jul 2020 17:01:19 +0000 (19:01 +0200)
commit5648d1c9cadb0a6afb29dd8891159906dadf5c77
treedeaaeff2f5c8f4cd2cd1ad73c0380dfcc723e3ca
parent2bccc8415883c1cd5ae8836548d9783dbbd84999
mt76: mt76u: add missing release on skb in __mt76x02u_mcu_send_msg

In the implementation of __mt76x02u_mcu_send_msg() the skb is consumed
all execution paths except one. Release skb before returning if
test_bit() fails.

Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76x02_usb_mcu.c