Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 195608
b: refs/heads/master
c: d545908
h: refs/heads/master
v: v3
  • Loading branch information
Harish Zunjarrao authored and James Bottomley committed Apr 11, 2010
1 parent a0e20da commit a056784
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 09ff701a177b116c6c15b6e501e58fbfb306b424
refs/heads/master: d5459083af5b6e01796797edd12555ab586c6092
6 changes: 4 additions & 2 deletions trunk/drivers/scsi/qla2xxx/qla_bsg.c
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ qla84xx_mgmt_cmd(struct fc_bsg_job *bsg_job)
int rval = 0;
struct qla_bsg_a84_mgmt *ql84_mgmt;
uint32_t sg_cnt;
uint32_t data_len;
uint32_t data_len = 0;
uint32_t dma_direction = DMA_NONE;

if (test_bit(ISP_ABORT_NEEDED, &vha->dpc_flags) ||
Expand Down Expand Up @@ -980,9 +980,11 @@ qla84xx_mgmt_cmd(struct fc_bsg_job *bsg_job)
}

bsg_job->job_done(bsg_job);
dma_free_coherent(&ha->pdev->dev, data_len, mgmt_b, mgmt_dma);

done_unmap_sg:
if (mgmt_b)
dma_free_coherent(&ha->pdev->dev, data_len, mgmt_b, mgmt_dma);

if (dma_direction == DMA_TO_DEVICE)
dma_unmap_sg(&ha->pdev->dev, bsg_job->request_payload.sg_list,
bsg_job->request_payload.sg_cnt, DMA_TO_DEVICE);
Expand Down

0 comments on commit a056784

Please sign in to comment.