Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 233090
b: refs/heads/master
c: 75d1a75
h: refs/heads/master
v: v3
  • Loading branch information
Toshiharu Okada authored and David S. Miller committed Feb 9, 2011
1 parent 137e22c commit f1a7124
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 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: c69b90920a36b88ab0d649963d81355d865eeb05
refs/heads/master: 75d1a7522f8b3f4de3eea040fdcdb640deeda64d
12 changes: 4 additions & 8 deletions trunk/drivers/net/pch_gbe/pch_gbe_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,9 @@ static void pch_gbe_reset_task(struct work_struct *work)
struct pch_gbe_adapter *adapter;
adapter = container_of(work, struct pch_gbe_adapter, reset_task);

rtnl_lock();
pch_gbe_reinit_locked(adapter);
rtnl_unlock();
}

/**
Expand All @@ -528,14 +530,8 @@ static void pch_gbe_reset_task(struct work_struct *work)
*/
void pch_gbe_reinit_locked(struct pch_gbe_adapter *adapter)
{
struct net_device *netdev = adapter->netdev;

rtnl_lock();
if (netif_running(netdev)) {
pch_gbe_down(adapter);
pch_gbe_up(adapter);
}
rtnl_unlock();
pch_gbe_down(adapter);
pch_gbe_up(adapter);
}

/**
Expand Down

0 comments on commit f1a7124

Please sign in to comment.