Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 314879
b: refs/heads/master
c: 5a2766a
h: refs/heads/master
i:
  314877: 871e8d0
  314875: 84295b6
  314871: 938c4d5
  314863: 0fd76ef
  314847: ffb706b
  314815: 4b696df
  314751: 93b430e
  314623: 6498535
  314367: 6de2581
v: v3
  • Loading branch information
Larry Finger authored and John W. Linville committed Jun 26, 2012
1 parent 13426d7 commit c7b75a6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 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: 2c443443e715fc79da9b7c3e4f31a71fcf315b09
refs/heads/master: 5a2766abe42a0fa10a6a7177bece2a205f66bdb9
17 changes: 9 additions & 8 deletions trunk/drivers/net/wireless/rtlwifi/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -1273,33 +1273,34 @@ int rtl_pci_reset_trx_ring(struct ieee80211_hw *hw)
*after reset, release previous pending packet,
*and force the tx idx to the first one
*/
spin_lock_irqsave(&rtlpriv->locks.irq_th_lock, flags);
for (i = 0; i < RTL_PCI_MAX_TX_QUEUE_COUNT; i++) {
if (rtlpci->tx_ring[i].desc) {
struct rtl8192_tx_ring *ring = &rtlpci->tx_ring[i];

while (skb_queue_len(&ring->queue)) {
struct rtl_tx_desc *entry =
&ring->desc[ring->idx];
struct sk_buff *skb =
__skb_dequeue(&ring->queue);
struct rtl_tx_desc *entry;
struct sk_buff *skb;

spin_lock_irqsave(&rtlpriv->locks.irq_th_lock,
flags);
entry = &ring->desc[ring->idx];
skb = __skb_dequeue(&ring->queue);
pci_unmap_single(rtlpci->pdev,
rtlpriv->cfg->ops->
get_desc((u8 *)
entry,
true,
HW_DESC_TXBUFF_ADDR),
skb->len, PCI_DMA_TODEVICE);
kfree_skb(skb);
ring->idx = (ring->idx + 1) % ring->entries;
spin_unlock_irqrestore(&rtlpriv->locks.irq_th_lock,
flags);
kfree_skb(skb);
}
ring->idx = 0;
}
}

spin_unlock_irqrestore(&rtlpriv->locks.irq_th_lock, flags);

return 0;
}

Expand Down

0 comments on commit c7b75a6

Please sign in to comment.