Skip to content

Commit

Permalink
mac80211: properly free TX skbs when monitor TX fails
Browse files Browse the repository at this point in the history
We need to free all skbs here, not just the one we peeked
from the list.

Signed-off-by: Johannes Berg <[email protected]>
  • Loading branch information
jmberg-intel committed Dec 4, 2015
1 parent 86c7ec9 commit 63b4d8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/mac80211/tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 63b4d8b

Please sign in to comment.