mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: mt7915: fix potential memory leak of fw monitor packets
Free the skb of fw monitor packets. Signed-off-by: Shayne Chen <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
c114919f0c
commit
93191a37e5
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user