Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 103077
b: refs/heads/master
c: 2739a8b
h: refs/heads/master
i:
  103075: 9362a52
v: v3
  • Loading branch information
Michael Chan authored and David S. Miller committed Jun 19, 2008
1 parent 40fbb79 commit c7f439e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 24 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: 5e9ad9e108883503fedfac3279ac101dce00bb56
refs/heads/master: 2739a8bb5b13653999827da09565b1bca5cec67d
37 changes: 14 additions & 23 deletions trunk/drivers/net/bnx2.c
Original file line number Diff line number Diff line change
Expand Up @@ -5773,29 +5773,16 @@ bnx2_open(struct net_device *dev)
bnx2_setup_int_mode(bp, disable_msi);
bnx2_napi_enable(bp);
rc = bnx2_alloc_mem(bp);
if (rc) {
bnx2_napi_disable(bp);
bnx2_free_mem(bp);
return rc;
}
if (rc)
goto open_err;

rc = bnx2_request_irq(bp);

if (rc) {
bnx2_napi_disable(bp);
bnx2_free_mem(bp);
return rc;
}
if (rc)
goto open_err;

rc = bnx2_init_nic(bp, 1);

if (rc) {
bnx2_napi_disable(bp);
bnx2_free_irq(bp);
bnx2_free_skbs(bp);
bnx2_free_mem(bp);
return rc;
}
if (rc)
goto open_err;

mod_timer(&bp->timer, jiffies + bp->current_interval);

Expand Down Expand Up @@ -5825,11 +5812,8 @@ bnx2_open(struct net_device *dev)
rc = bnx2_request_irq(bp);

if (rc) {
bnx2_napi_disable(bp);
bnx2_free_skbs(bp);
bnx2_free_mem(bp);
del_timer_sync(&bp->timer);
return rc;
goto open_err;
}
bnx2_enable_int(bp);
}
Expand All @@ -5842,6 +5826,13 @@ bnx2_open(struct net_device *dev)
netif_start_queue(dev);

return 0;

open_err:
bnx2_napi_disable(bp);
bnx2_free_skbs(bp);
bnx2_free_irq(bp);
bnx2_free_mem(bp);
return rc;
}

static void
Expand Down

0 comments on commit c7f439e

Please sign in to comment.