mt76: mt7915: fix memory leak in mt7915_mcu_get_rx_rate()

Free the skb to prevent memory leak.

Signed-off-by: Shayne Chen <shayne.chen@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Shayne Chen 2020-11-16 19:45:54 +08:00 committed by Felix Fietkau
parent 0211c282bc
commit d211c00338

View File

@ -3541,5 +3541,7 @@ int mt7915_mcu_get_rx_rate(struct mt7915_phy *phy, struct ieee80211_vif *vif,
break;
}
dev_kfree_skb(skb);
return 0;
}