Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 162911
b: refs/heads/master
c: e99b1f0
h: refs/heads/master
i:
  162909: 2136333
  162907: 925abde
  162903: bed55ef
  162895: 051d3d7
  162879: 67c690d
v: v3
  • Loading branch information
Dongdong Deng authored and David S. Miller committed Sep 17, 2009
1 parent 33b92cc commit 3d3cf26
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 3933fc952a5a5af4cf23fca94e20203251c9d825
refs/heads/master: e99b1f04d922f132ffab8310b470bcc93d3ddf80
7 changes: 3 additions & 4 deletions trunk/drivers/net/b44.c
Original file line number Diff line number Diff line change
Expand Up @@ -847,23 +847,22 @@ static int b44_poll(struct napi_struct *napi, int budget)
{
struct b44 *bp = container_of(napi, struct b44, napi);
int work_done;
unsigned long flags;

spin_lock_irq(&bp->lock);
spin_lock_irqsave(&bp->lock, flags);

if (bp->istat & (ISTAT_TX | ISTAT_TO)) {
/* spin_lock(&bp->tx_lock); */
b44_tx(bp);
/* spin_unlock(&bp->tx_lock); */
}
spin_unlock_irq(&bp->lock);
spin_unlock_irqrestore(&bp->lock, flags);

work_done = 0;
if (bp->istat & ISTAT_RX)
work_done += b44_rx(bp, budget);

if (bp->istat & ISTAT_ERRORS) {
unsigned long flags;

spin_lock_irqsave(&bp->lock, flags);
b44_halt(bp);
b44_init_rings(bp);
Expand Down

0 comments on commit 3d3cf26

Please sign in to comment.