mt76: mt7915: fix memory leak in mt7915_mcu_get_rx_rate()

Free the skb to prevent memory leak.

Signed-off-by: Shayne Chen <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Shayne Chen
2020-11-18 11:28:04 +01:00
committed by Felix Fietkau
parent d8e681bd32
commit 19c9e277ef
+2
View File
@@ -3564,5 +3564,7 @@ int mt7915_mcu_get_rx_rate(struct mt7915_phy *phy, struct ieee80211_vif *vif,
break;
}
dev_kfree_skb(skb);
return 0;
}