Skip to content

Commit

Permalink
mt76: mt7915: fix potential memory leak of fw monitor packets
Browse files Browse the repository at this point in the history
Free the skb of fw monitor packets.

Signed-off-by: Shayne Chen <shayne.chen@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
  • Loading branch information
csyuanc authored and nbd168 committed Feb 14, 2022
1 parent c114919 commit 93191a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mt7915/mac.c
Expand Up @@ -1724,6 +1724,7 @@ void mt7915_queue_rx_skb(struct mt76_dev *mdev, enum mt76_rxq_id q,
break;
case PKT_TYPE_RX_FW_MONITOR:
mt7915_debugfs_rx_fw_monitor(dev, skb->data, skb->len);
dev_kfree_skb(skb);
break;
case PKT_TYPE_NORMAL:
if (!mt7915_mac_fill_rx(dev, skb)) {
Expand Down

0 comments on commit 93191a3

Please sign in to comment.