summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla4xxx
diff options
context:
space:
mode:
authorVikas Chaudhary <vikas.chaudhary@qlogic.com>2014-02-24 22:07:04 -0500
committerChristoph Hellwig <hch@lst.de>2014-05-19 19:12:17 +0200
commit7b963c055570ef245a2b2a8c617dc1a064a4447d (patch)
tree7805771f6bc78f7bd52df651ecfc0dda94f85235 /drivers/scsi/qla4xxx
parentaa6db9b9cdf642b220f2a0861facf6bab1d3ab37 (diff)
downloadblackbird-op-linux-7b963c055570ef245a2b2a8c617dc1a064a4447d.tar.gz
blackbird-op-linux-7b963c055570ef245a2b2a8c617dc1a064a4447d.zip
qla4xxx: Fix memory leak in func qla4_84xx_config_acb()
Use correct goto statement to free dma memory in case of failure in function qla4_84xx_config_acb() Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com> Reviewed-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/scsi/qla4xxx')
-rw-r--r--drivers/scsi/qla4xxx/ql4_mbx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/qla4xxx/ql4_mbx.c b/drivers/scsi/qla4xxx/ql4_mbx.c
index 0a6b782d6fdb..1345c0eaa6d7 100644
--- a/drivers/scsi/qla4xxx/ql4_mbx.c
+++ b/drivers/scsi/qla4xxx/ql4_mbx.c
@@ -2381,7 +2381,7 @@ int qla4_84xx_config_acb(struct scsi_qla_host *ha, int acb_config)
ql4_printk(KERN_ERR, ha, "%s: Unable to alloc acb\n",
__func__);
rval = QLA_ERROR;
- goto exit_config_acb;
+ goto exit_free_acb;
}
memcpy(ha->saved_acb, acb, acb_len);
break;
OpenPOWER on IntegriCloud