diff options
author | Johannes Berg <johannes.berg@intel.com> | 2015-11-24 14:41:50 (GMT) |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2015-12-04 13:43:32 (GMT) |
commit | 63b4d8b3736b83126ea531c536eff9f76e4cd739 (patch) | |
tree | e963cba0e5621207d144178822f42b77d5e1f08d /net/mac80211/tx.c | |
parent | 86c7ec9eb154020797c39e1cc7dafa92da02f603 (diff) | |
download | linux-63b4d8b3736b83126ea531c536eff9f76e4cd739.tar.xz |
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: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/tx.c')
-rw-r--r-- | net/mac80211/tx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index bdc224d..3311ce0 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c @@ -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; |