From: Tomas Henzl Date: Fri, 6 Jun 2014 12:06:30 +0000 (+0200) Subject: be2iscsi: add an missing goto in error path X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=5f2d25efa4c4567fa72b70de4e041252c72aa10e;p=linux-beck.git be2iscsi: add an missing goto in error path a jump to 'free_memory' is apparently missing Signed-off-by: Tomas Henzl Reviewed-by: Mike Christie Signed-off-by: Christoph Hellwig --- diff --git a/drivers/scsi/be2iscsi/be_main.c b/drivers/scsi/be2iscsi/be_main.c index 554349029628..56467df3d6de 100644 --- a/drivers/scsi/be2iscsi/be_main.c +++ b/drivers/scsi/be2iscsi/be_main.c @@ -4198,6 +4198,8 @@ static int hba_setup_cid_tbls(struct beiscsi_hba *phba) kfree(phba->ep_array); phba->ep_array = NULL; ret = -ENOMEM; + + goto free_memory; } for (i = 0; i < phba->params.cxns_per_ctrl; i++) {