Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 74446
b: refs/heads/master
c: 3defd0e
h: refs/heads/master
v: v3
  • Loading branch information
Jiri Bohac authored and Jeff Garzik committed Nov 24, 2007
1 parent 3ad99ed commit 495e78c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 77b6901573066d6eadfcf66161a5768f3d2de9e9
refs/heads/master: 3defd0ee74b8bec6977a34aae99939af6c007f84
6 changes: 6 additions & 0 deletions trunk/drivers/net/amd8111e.c
Original file line number Diff line number Diff line change
Expand Up @@ -1340,7 +1340,9 @@ static int amd8111e_close(struct net_device * dev)
struct amd8111e_priv *lp = netdev_priv(dev);
netif_stop_queue(dev);

#ifdef CONFIG_AMD8111E_NAPI
napi_disable(&lp->napi);
#endif

spin_lock_irq(&lp->lock);

Expand Down Expand Up @@ -1372,15 +1374,19 @@ static int amd8111e_open(struct net_device * dev )
dev->name, dev))
return -EAGAIN;

#ifdef CONFIG_AMD8111E_NAPI
napi_enable(&lp->napi);
#endif

spin_lock_irq(&lp->lock);

amd8111e_init_hw_default(lp);

if(amd8111e_restart(dev)){
spin_unlock_irq(&lp->lock);
#ifdef CONFIG_AMD8111E_NAPI
napi_disable(&lp->napi);
#endif
if (dev->irq)
free_irq(dev->irq, dev);
return -ENOMEM;
Expand Down

0 comments on commit 495e78c

Please sign in to comment.