diff options
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/pm8001/pm8001_init.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/pm8001/pm8001_init.c b/drivers/scsi/pm8001/pm8001_init.c index 4c9fe733fe88..3d5e522e00fc 100644 --- a/drivers/scsi/pm8001/pm8001_init.c +++ b/drivers/scsi/pm8001/pm8001_init.c | |||
@@ -140,7 +140,8 @@ static void pm8001_free(struct pm8001_hba_info *pm8001_ha) | |||
140 | for (i = 0; i < USI_MAX_MEMCNT; i++) { | 140 | for (i = 0; i < USI_MAX_MEMCNT; i++) { |
141 | if (pm8001_ha->memoryMap.region[i].virt_ptr != NULL) { | 141 | if (pm8001_ha->memoryMap.region[i].virt_ptr != NULL) { |
142 | pci_free_consistent(pm8001_ha->pdev, | 142 | pci_free_consistent(pm8001_ha->pdev, |
143 | pm8001_ha->memoryMap.region[i].element_size, | 143 | (pm8001_ha->memoryMap.region[i].total_len + |
144 | pm8001_ha->memoryMap.region[i].alignment), | ||
144 | pm8001_ha->memoryMap.region[i].virt_ptr, | 145 | pm8001_ha->memoryMap.region[i].virt_ptr, |
145 | pm8001_ha->memoryMap.region[i].phys_addr); | 146 | pm8001_ha->memoryMap.region[i].phys_addr); |
146 | } | 147 | } |