summaryrefslogtreecommitdiff
path: root/drivers/scsi/megaraid/megaraid_sas_base.c
diff options
context:
space:
mode:
authorJames Bottomley <James.Bottomley@HansenPartnership.com>2016-03-22 14:33:04 +0300
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2016-03-22 14:33:04 +0300
commitc6986be4f9e9c02e63619efd7049ea0cdcf862f6 (patch)
tree1cbe8f947aaa0ba2d4e08ec164a0497c36d5da82 /drivers/scsi/megaraid/megaraid_sas_base.c
parentb86c75fda662506fe6e55d61994482fb4a704f5f (diff)
parentba08311647892cc7912de74525fd78416caf544a (diff)
downloadlinux-c6986be4f9e9c02e63619efd7049ea0cdcf862f6.tar.xz
Merge remote-tracking branch 'mkp-scsi/4.6/scsi-fixes' into misc
Diffstat (limited to 'drivers/scsi/megaraid/megaraid_sas_base.c')
-rw-r--r--drivers/scsi/megaraid/megaraid_sas_base.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c b/drivers/scsi/megaraid/megaraid_sas_base.c
index 69d375b8f2e1..e6ebc7ae2df1 100644
--- a/drivers/scsi/megaraid/megaraid_sas_base.c
+++ b/drivers/scsi/megaraid/megaraid_sas_base.c
@@ -6656,12 +6656,13 @@ out:
}
for (i = 0; i < ioc->sge_count; i++) {
- if (kbuff_arr[i])
+ if (kbuff_arr[i]) {
dma_free_coherent(&instance->pdev->dev,
le32_to_cpu(kern_sge32[i].length),
kbuff_arr[i],
le32_to_cpu(kern_sge32[i].phys_addr));
kbuff_arr[i] = NULL;
+ }
}
megasas_return_cmd(instance, cmd);