diff options
Diffstat (limited to 'drivers/net/bnx2.c')
-rw-r--r-- | drivers/net/bnx2.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c index 9cfd46017e4e..1d502e6f6c9c 100644 --- a/drivers/net/bnx2.c +++ b/drivers/net/bnx2.c | |||
@@ -6992,9 +6992,14 @@ bnx2_change_ring_size(struct bnx2 *bp, u32 rx, u32 tx) | |||
6992 | int rc; | 6992 | int rc; |
6993 | 6993 | ||
6994 | rc = bnx2_alloc_mem(bp); | 6994 | rc = bnx2_alloc_mem(bp); |
6995 | if (rc) | 6995 | if (!rc) |
6996 | rc = bnx2_init_nic(bp, 0); | ||
6997 | |||
6998 | if (rc) { | ||
6999 | bnx2_napi_enable(bp); | ||
7000 | dev_close(bp->dev); | ||
6996 | return rc; | 7001 | return rc; |
6997 | bnx2_init_nic(bp, 0); | 7002 | } |
6998 | bnx2_netif_start(bp); | 7003 | bnx2_netif_start(bp); |
6999 | } | 7004 | } |
7000 | return 0; | 7005 | return 0; |