diff options
-rw-r--r-- | drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c index 4ab4c89c60cd..74d6486fccfd 100644 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c | |||
@@ -2545,10 +2545,6 @@ int bnx2x_nic_load(struct bnx2x *bp, int load_mode) | |||
2545 | } | 2545 | } |
2546 | } | 2546 | } |
2547 | 2547 | ||
2548 | /* Allocated memory for FW statistics */ | ||
2549 | if (bnx2x_alloc_fw_stats_mem(bp)) | ||
2550 | LOAD_ERROR_EXIT(bp, load_error0); | ||
2551 | |||
2552 | /* need to be done after alloc mem, since it's self adjusting to amount | 2548 | /* need to be done after alloc mem, since it's self adjusting to amount |
2553 | * of memory available for RSS queues | 2549 | * of memory available for RSS queues |
2554 | */ | 2550 | */ |
@@ -2558,6 +2554,10 @@ int bnx2x_nic_load(struct bnx2x *bp, int load_mode) | |||
2558 | LOAD_ERROR_EXIT(bp, load_error0); | 2554 | LOAD_ERROR_EXIT(bp, load_error0); |
2559 | } | 2555 | } |
2560 | 2556 | ||
2557 | /* Allocated memory for FW statistics */ | ||
2558 | if (bnx2x_alloc_fw_stats_mem(bp)) | ||
2559 | LOAD_ERROR_EXIT(bp, load_error0); | ||
2560 | |||
2561 | /* request pf to initialize status blocks */ | 2561 | /* request pf to initialize status blocks */ |
2562 | if (IS_VF(bp)) { | 2562 | if (IS_VF(bp)) { |
2563 | rc = bnx2x_vfpf_init(bp); | 2563 | rc = bnx2x_vfpf_init(bp); |
@@ -2812,8 +2812,8 @@ load_error1: | |||
2812 | if (IS_PF(bp)) | 2812 | if (IS_PF(bp)) |
2813 | bnx2x_clear_pf_load(bp); | 2813 | bnx2x_clear_pf_load(bp); |
2814 | load_error0: | 2814 | load_error0: |
2815 | bnx2x_free_fp_mem(bp); | ||
2816 | bnx2x_free_fw_stats_mem(bp); | 2815 | bnx2x_free_fw_stats_mem(bp); |
2816 | bnx2x_free_fp_mem(bp); | ||
2817 | bnx2x_free_mem(bp); | 2817 | bnx2x_free_mem(bp); |
2818 | 2818 | ||
2819 | return rc; | 2819 | return rc; |