Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 166698
b: refs/heads/master
c: f2c0d8d
h: refs/heads/master
v: v3
  • Loading branch information
Ron Mercer authored and David S. Miller committed Oct 1, 2009
1 parent 898b4ff commit 9375e06
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: 06a49f7280091bd3dc27d4a4ceb17c68b8cda895
refs/heads/master: f2c0d8df05228b64dbb2d8d4b6e2089c98041ada
6 changes: 3 additions & 3 deletions trunk/drivers/net/qlge/qlge_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3703,20 +3703,20 @@ static void ql_asic_reset_work(struct work_struct *work)
struct ql_adapter *qdev =
container_of(work, struct ql_adapter, asic_reset_work.work);
int status;

rtnl_lock();
status = ql_adapter_down(qdev);
if (status)
goto error;

status = ql_adapter_up(qdev);
if (status)
goto error;

rtnl_unlock();
return;
error:
QPRINTK(qdev, IFUP, ALERT,
"Driver up/down cycle failed, closing device\n");
rtnl_lock();

set_bit(QL_ADAPTER_UP, &qdev->flags);
dev_close(qdev->ndev);
rtnl_unlock();
Expand Down

0 comments on commit 9375e06

Please sign in to comment.