qla4xxx: Fix memory leak in func qla4_84xx_config_acb()
authorVikas Chaudhary <vikas.chaudhary@qlogic.com>
Tue, 25 Feb 2014 03:07:04 +0000 (22:07 -0500)
committerChristoph Hellwig <hch@lst.de>
Mon, 19 May 2014 17:12:17 +0000 (19:12 +0200)
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>
drivers/scsi/qla4xxx/ql4_mbx.c

index 0a6b782d6fdbe9d5113dcc0c19ff9b50d80b010b..1345c0eaa6d7fe71a42c2cbf076b08f424e7a305 100644 (file)
@@ -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;