Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 225506
b: refs/heads/master
c: 5c4bc1c
h: refs/heads/master
v: v3
  • Loading branch information
Chaoming Li authored and John W. Linville committed Dec 22, 2010
1 parent 36b67f6 commit a847d86
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 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: 172128468f61e16e1427238278b9ad775584aa89
refs/heads/master: 5c4bc1ce917d93ce8f7dd498fbec6881b3d7743a
18 changes: 15 additions & 3 deletions trunk/drivers/net/wireless/rtlwifi/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -612,10 +612,22 @@ static void _rtl_pci_rx_interrupt(struct ieee80211_hw *hw)
num_rx_inperiod++;
}

if (unlikely(!rtl_action_proc(hw, skb, false)))
if (unlikely(!rtl_action_proc(hw, skb,
false))) {
dev_kfree_skb_any(skb);
else
ieee80211_rx_irqsafe(hw, skb);
} else {
struct sk_buff *uskb = NULL;
u8 *pdata;
uskb = dev_alloc_skb(skb->len + 128);
memcpy(IEEE80211_SKB_RXCB(uskb),
&rx_status,
sizeof(rx_status));
pdata = (u8 *)skb_put(uskb, skb->len);
memcpy(pdata, skb->data, skb->len);
dev_kfree_skb_any(skb);

ieee80211_rx_irqsafe(hw, uskb);
}
} else {
dev_kfree_skb_any(skb);
}
Expand Down

0 comments on commit a847d86

Please sign in to comment.