aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla4xxx
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/qla4xxx')
-rw-r--r--drivers/scsi/qla4xxx/ql4_mbx.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/scsi/qla4xxx/ql4_mbx.c b/drivers/scsi/qla4xxx/ql4_mbx.c
index 1345c0eaa6d7..0a3312c6dd6d 100644
--- a/drivers/scsi/qla4xxx/ql4_mbx.c
+++ b/drivers/scsi/qla4xxx/ql4_mbx.c
@@ -2395,8 +2395,6 @@ int qla4_84xx_config_acb(struct scsi_qla_host *ha, int acb_config)
2395 } 2395 }
2396 2396
2397 memcpy(acb, ha->saved_acb, acb_len); 2397 memcpy(acb, ha->saved_acb, acb_len);
2398 kfree(ha->saved_acb);
2399 ha->saved_acb = NULL;
2400 2398
2401 rval = qla4xxx_set_acb(ha, &mbox_cmd[0], &mbox_sts[0], acb_dma); 2399 rval = qla4xxx_set_acb(ha, &mbox_cmd[0], &mbox_sts[0], acb_dma);
2402 if (rval != QLA_SUCCESS) 2400 if (rval != QLA_SUCCESS)
@@ -2412,6 +2410,10 @@ exit_free_acb:
2412 dma_free_coherent(&ha->pdev->dev, sizeof(struct addr_ctrl_blk), acb, 2410 dma_free_coherent(&ha->pdev->dev, sizeof(struct addr_ctrl_blk), acb,
2413 acb_dma); 2411 acb_dma);
2414exit_config_acb: 2412exit_config_acb:
2413 if ((acb_config == ACB_CONFIG_SET) && ha->saved_acb) {
2414 kfree(ha->saved_acb);
2415 ha->saved_acb = NULL;
2416 }
2415 DEBUG2(ql4_printk(KERN_INFO, ha, 2417 DEBUG2(ql4_printk(KERN_INFO, ha,
2416 "%s %s\n", __func__, 2418 "%s %s\n", __func__,
2417 rval == QLA_SUCCESS ? "SUCCEEDED" : "FAILED")); 2419 rval == QLA_SUCCESS ? "SUCCEEDED" : "FAILED"));