Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 136208
b: refs/heads/master
c: a220858
h: refs/heads/master
v: v3
  • Loading branch information
Johannes Berg authored and John W. Linville committed Mar 28, 2009
1 parent 966f430 commit e49af1c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b1720231ca07dee3382980f3b25e6581bd2e54e9
refs/heads/master: a220858d30604902f650074bfac5a7598bc97ea4
7 changes: 6 additions & 1 deletion trunk/net/mac80211/tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1089,7 +1089,7 @@ static int __ieee80211_tx(struct ieee80211_local *local,
{
struct sk_buff *skb = *skbp, *next;
struct ieee80211_tx_info *info;
int ret;
int ret, len;
bool fragm = false;

local->mdev->trans_start = jiffies;
Expand Down Expand Up @@ -1125,7 +1125,12 @@ static int __ieee80211_tx(struct ieee80211_local *local,
}

next = skb->next;
len = skb->len;
ret = local->ops->tx(local_to_hw(local), skb);
if (WARN_ON(ret != NETDEV_TX_OK && skb->len != len)) {
dev_kfree_skb(skb);
ret = NETDEV_TX_OK;
}
if (ret != NETDEV_TX_OK)
return IEEE80211_TX_AGAIN;
*skbp = skb = next;
Expand Down

0 comments on commit e49af1c

Please sign in to comment.