Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 255727
b: refs/heads/master
c: 14058ad
h: refs/heads/master
i:
  255725: 89d3a8c
  255723: 5eeb486
  255719: 1c44050
  255711: 8764de6
v: v3
  • Loading branch information
Mike McCormack authored and John W. Linville committed Jun 10, 2011
1 parent ff23dd4 commit b78cdda
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 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: 8db8ddf13dda0fc96937bcb6e10563e7b9a20387
refs/heads/master: 14058adddd4fd40e45c434c801e8ed8baf09251e
8 changes: 3 additions & 5 deletions trunk/drivers/net/wireless/rtlwifi/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -727,19 +727,16 @@ static void _rtl_pci_rx_interrupt(struct ieee80211_hw *hw)
(rtlpriv->rtlhal.current_bandtype == BAND_ON_2_4G) &&
(ieee80211_is_beacon(fc) ||
ieee80211_is_probe_resp(fc))) {
dev_kfree_skb_any(skb);
;
} else {
if (unlikely(!rtl_action_proc(hw, skb, false))) {
dev_kfree_skb_any(skb);
} else {
if (likely(rtl_action_proc(hw, skb, false))) {
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);
}
Expand All @@ -751,6 +748,7 @@ static void _rtl_pci_rx_interrupt(struct ieee80211_hw *hw)
tasklet_schedule(&rtlpriv->works.ips_leave_tasklet);
}

dev_kfree_skb_any(skb);
skb = new_skb;

rtlpci->rx_ring[rx_queue_idx].rx_buf[index] = skb;
Expand Down

0 comments on commit b78cdda

Please sign in to comment.