diff options
-rw-r--r-- | drivers/scsi/qla2xxx/qla_bsg.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/scsi/qla2xxx/qla_bsg.c b/drivers/scsi/qla2xxx/qla_bsg.c index 05520be511b6..9f34dedcdad7 100644 --- a/drivers/scsi/qla2xxx/qla_bsg.c +++ b/drivers/scsi/qla2xxx/qla_bsg.c | |||
@@ -743,7 +743,7 @@ qla2x00_process_loopback(struct fc_bsg_job *bsg_job) | |||
743 | ql_log(ql_log_warn, vha, 0x701f, | 743 | ql_log(ql_log_warn, vha, 0x701f, |
744 | "Get port config failed.\n"); | 744 | "Get port config failed.\n"); |
745 | rval = -EPERM; | 745 | rval = -EPERM; |
746 | goto done_free_dma_req; | 746 | goto done_free_dma_rsp; |
747 | } | 747 | } |
748 | 748 | ||
749 | ql_dbg(ql_dbg_user, vha, 0x70c0, | 749 | ql_dbg(ql_dbg_user, vha, 0x70c0, |
@@ -762,7 +762,7 @@ qla2x00_process_loopback(struct fc_bsg_job *bsg_job) | |||
762 | 762 | ||
763 | if (rval) { | 763 | if (rval) { |
764 | rval = -EPERM; | 764 | rval = -EPERM; |
765 | goto done_free_dma_req; | 765 | goto done_free_dma_rsp; |
766 | } | 766 | } |
767 | 767 | ||
768 | type = "FC_BSG_HST_VENDOR_LOOPBACK"; | 768 | type = "FC_BSG_HST_VENDOR_LOOPBACK"; |
@@ -795,7 +795,7 @@ qla2x00_process_loopback(struct fc_bsg_job *bsg_job) | |||
795 | } | 795 | } |
796 | 796 | ||
797 | rval = -EIO; | 797 | rval = -EIO; |
798 | goto done_free_dma_req; | 798 | goto done_free_dma_rsp; |
799 | } | 799 | } |
800 | } else { | 800 | } else { |
801 | type = "FC_BSG_HST_VENDOR_LOOPBACK"; | 801 | type = "FC_BSG_HST_VENDOR_LOOPBACK"; |
@@ -830,6 +830,7 @@ qla2x00_process_loopback(struct fc_bsg_job *bsg_job) | |||
830 | fw_sts_ptr += sizeof(response); | 830 | fw_sts_ptr += sizeof(response); |
831 | *fw_sts_ptr = command_sent; | 831 | *fw_sts_ptr = command_sent; |
832 | 832 | ||
833 | done_free_dma_rsp: | ||
833 | dma_free_coherent(&ha->pdev->dev, rsp_data_len, | 834 | dma_free_coherent(&ha->pdev->dev, rsp_data_len, |
834 | rsp_data, rsp_data_dma); | 835 | rsp_data, rsp_data_dma); |
835 | done_free_dma_req: | 836 | done_free_dma_req: |