提交 63b4d8b3 编写于 作者: J Johannes Berg

mac80211: properly free TX skbs when monitor TX fails

We need to free all skbs here, not just the one we peeked
from the list.
Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
上级 86c7ec9e
...@@ -1431,7 +1431,7 @@ static bool __ieee80211_tx(struct ieee80211_local *local, ...@@ -1431,7 +1431,7 @@ static bool __ieee80211_tx(struct ieee80211_local *local,
info->hw_queue = info->hw_queue =
vif->hw_queue[skb_get_queue_mapping(skb)]; vif->hw_queue[skb_get_queue_mapping(skb)];
} else if (ieee80211_hw_check(&local->hw, QUEUE_CONTROL)) { } else if (ieee80211_hw_check(&local->hw, QUEUE_CONTROL)) {
dev_kfree_skb(skb); ieee80211_purge_tx_queue(&local->hw, skbs);
return true; return true;
} else } else
vif = NULL; vif = NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册