Commit 63b4d8b3 authored by Johannes Berg's avatar Johannes Berg
Browse files

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: default avatarJohannes Berg <johannes.berg@intel.com>
parent 86c7ec9e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1431,7 +1431,7 @@ static bool __ieee80211_tx(struct ieee80211_local *local,
			info->hw_queue =
				vif->hw_queue[skb_get_queue_mapping(skb)];
		} else if (ieee80211_hw_check(&local->hw, QUEUE_CONTROL)) {
			dev_kfree_skb(skb);
			ieee80211_purge_tx_queue(&local->hw, skbs);
			return true;
		} else
			vif = NULL;