Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 66650
b: refs/heads/master
c: aa90f50
h: refs/heads/master
v: v3
  • Loading branch information
Vitaly Bordug authored and David S. Miller committed Oct 10, 2007
1 parent 84e35b2 commit cc5cc11
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: 1a9e8549efda23a08451d0ac582713dfd04f0951
refs/heads/master: aa90f5032129b43569896c1c6c15a706c02c6abf
6 changes: 4 additions & 2 deletions trunk/drivers/net/fs_enet/fs_enet-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ static void fs_enet_tx(struct net_device *dev)
int dirtyidx, do_wake, do_restart;
u16 sc;

spin_lock(&fep->lock);
spin_lock(&fep->tx_lock);
bdp = fep->dirty_tx;

do_wake = do_restart = 0;
Expand Down Expand Up @@ -415,7 +415,7 @@ static void fs_enet_tx(struct net_device *dev)
if (do_restart)
(*fep->ops->tx_restart)(dev);

spin_unlock(&fep->lock);
spin_unlock(&fep->tx_lock);

if (do_wake)
netif_wake_queue(dev);
Expand Down Expand Up @@ -818,7 +818,9 @@ static int fs_enet_close(struct net_device *dev)
phy_stop(fep->phydev);

spin_lock_irqsave(&fep->lock, flags);
spin_lock(&fep->tx_lock);
(*fep->ops->stop)(dev);
spin_unlock(&fep->tx_lock);
spin_unlock_irqrestore(&fep->lock, flags);

/* release any irqs */
Expand Down

0 comments on commit cc5cc11

Please sign in to comment.