Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 167931
b: refs/heads/master
c: 2bd9af0
h: refs/heads/master
i:
  167929: 478d907
  167927: d3ae746
v: v3
  • Loading branch information
Xiaotian Feng authored and David S. Miller committed Oct 23, 2009
1 parent f44a552 commit 4a7352e
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 0dc6d9cbe7df4d2c3cdf17cd2f78733102b0fea6
refs/heads/master: 2bd9af046fdc10703b266b0f3b25423f0b7d703e
6 changes: 3 additions & 3 deletions trunk/drivers/isdn/i4l/isdn_net.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,19 +83,19 @@ static __inline__ isdn_net_local * isdn_net_get_locked_lp(isdn_net_dev *nd)

spin_lock_irqsave(&nd->queue_lock, flags);
lp = nd->queue; /* get lp on top of queue */
spin_lock(&nd->queue->xmit_lock);
while (isdn_net_lp_busy(nd->queue)) {
spin_unlock(&nd->queue->xmit_lock);
nd->queue = nd->queue->next;
if (nd->queue == lp) { /* not found -- should never happen */
lp = NULL;
goto errout;
}
spin_lock(&nd->queue->xmit_lock);
}
lp = nd->queue;
nd->queue = nd->queue->next;
spin_unlock_irqrestore(&nd->queue_lock, flags);
spin_lock(&lp->xmit_lock);
local_bh_disable();
return lp;
errout:
spin_unlock_irqrestore(&nd->queue_lock, flags);
return lp;
Expand Down

0 comments on commit 4a7352e

Please sign in to comment.