aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/scsi/be2iscsi/be_main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/scsi/be2iscsi/be_main.c b/drivers/scsi/be2iscsi/be_main.c
index 0892ee28463f..7243a80b0d6d 100644
--- a/drivers/scsi/be2iscsi/be_main.c
+++ b/drivers/scsi/be2iscsi/be_main.c
@@ -2726,8 +2726,10 @@ static int beiscsi_alloc_mem(struct beiscsi_hba *phba)
2726 phwi_ctrlr->wrb_context = kzalloc(sizeof(struct hwi_wrb_context) * 2726 phwi_ctrlr->wrb_context = kzalloc(sizeof(struct hwi_wrb_context) *
2727 phba->params.cxns_per_ctrl, 2727 phba->params.cxns_per_ctrl,
2728 GFP_KERNEL); 2728 GFP_KERNEL);
2729 if (!phwi_ctrlr->wrb_context) 2729 if (!phwi_ctrlr->wrb_context) {
2730 kfree(phba->phwi_ctrlr);
2730 return -ENOMEM; 2731 return -ENOMEM;
2732 }
2731 2733
2732 phba->init_mem = kcalloc(SE_MEM_MAX, sizeof(*mem_descr), 2734 phba->init_mem = kcalloc(SE_MEM_MAX, sizeof(*mem_descr),
2733 GFP_KERNEL); 2735 GFP_KERNEL);