提交 7b963c05 编写于 作者: V Vikas Chaudhary 提交者: Christoph Hellwig

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: NVikas Chaudhary <vikas.chaudhary@qlogic.com>
Reviewed-by: NMike Christie <michaelc@cs.wisc.edu>
Signed-off-by: NChristoph Hellwig <hch@lst.de>
上级 aa6db9b9
...@@ -2381,7 +2381,7 @@ int qla4_84xx_config_acb(struct scsi_qla_host *ha, int acb_config) ...@@ -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", ql4_printk(KERN_ERR, ha, "%s: Unable to alloc acb\n",
__func__); __func__);
rval = QLA_ERROR; rval = QLA_ERROR;
goto exit_config_acb; goto exit_free_acb;
} }
memcpy(ha->saved_acb, acb, acb_len); memcpy(ha->saved_acb, acb, acb_len);
break; break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册