Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 278119
b: refs/heads/master
c: a29517c
h: refs/heads/master
i:
  278117: 7789532
  278115: e14fc9c
  278111: 5513293
v: v3
  • Loading branch information
Vasanthakumar Thiagarajan authored and Kalle Valo committed Nov 11, 2011
1 parent 9f6ce31 commit 09c1a2e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 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: 902b46293ba6fe2320970bbd400e3201992059d0
refs/heads/master: a29517ce40e128bdf0794110bb4b18a984da7fb7
10 changes: 8 additions & 2 deletions trunk/drivers/net/wireless/ath/ath6kl/txrx.c
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,14 @@ int ath6kl_data_tx(struct sk_buff *skb, struct net_device *dev)

if (test_bit(WMI_ENABLED, &ar->flag)) {
if (skb_headroom(skb) < dev->needed_headroom) {
WARN_ON(1);
goto fail_tx;
struct sk_buff *tmp_skb = skb;

skb = skb_realloc_headroom(skb, dev->needed_headroom);
kfree_skb(tmp_skb);
if (skb == NULL) {
vif->net_stats.tx_dropped++;
return 0;
}
}

if (ath6kl_wmi_dix_2_dot3(ar->wmi, skb)) {
Expand Down

0 comments on commit 09c1a2e

Please sign in to comment.