diff options
author | Shayne Chen <shayne.chen@mediatek.com> | 2020-11-16 19:45:54 +0800 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2020-12-04 14:31:16 +0100 |
commit | d211c003389ade3f8e31d1217c38f056e033d841 (patch) | |
tree | 7c3eecc8bf4a6b745b0de24989c9089dd6d1cbaa /drivers/net/wireless/mediatek/mt76/mt7915 | |
parent | 0211c282bc8aaa15343aadbc6e23043e7057f77d (diff) | |
download | linux-d211c003389ade3f8e31d1217c38f056e033d841.tar.bz2 |
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>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt7915')
-rw-r--r-- | drivers/net/wireless/mediatek/mt76/mt7915/mcu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/mcu.c b/drivers/net/wireless/mediatek/mt76/mt7915/mcu.c index 1b2f76250923..6097653abda4 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7915/mcu.c +++ b/drivers/net/wireless/mediatek/mt76/mt7915/mcu.c @@ -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; } |