Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 134897
b: refs/heads/master
c: ca2d559
h: refs/heads/master
i:
  134895: 2585e52
v: v3
  • Loading branch information
Michael Buesch authored and John W. Linville committed Feb 27, 2009
1 parent f0c11cd commit a7015eb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 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: dbaaa147d6396c41d8f31156a777dfdaae2335a4
refs/heads/master: ca2d559e1a41d62a5b49fb9ab513025ea27f1e7c
10 changes: 6 additions & 4 deletions trunk/drivers/net/wireless/b43/dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -1306,16 +1306,18 @@ int b43_dma_tx(struct b43_wldev *dev, struct sk_buff *skb)
}

spin_lock_irqsave(&ring->lock, flags);

B43_WARN_ON(!ring->tx);
/* Check if the queue was stopped in mac80211,
* but we got called nevertheless.
* That would be a mac80211 bug. */
B43_WARN_ON(ring->stopped);

if (unlikely(free_slots(ring) < SLOTS_PER_PACKET)) {
b43warn(dev->wl, "DMA queue overflow\n");
err = -ENOSPC;
goto out_unlock;
}
/* Check if the queue was stopped in mac80211,
* but we got called nevertheless.
* That would be a mac80211 bug. */
B43_WARN_ON(ring->stopped);

/* Assign the queue number to the ring (if not already done before)
* so TX status handling can use it. The queue to ring mapping is
Expand Down

0 comments on commit a7015eb

Please sign in to comment.