mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
iommu: msm: Don't treat address 0 as an error case
Currently, the iommu page table code treats a scattergather list with physical address 0 as an error. This may not be correct in all cases. Physical address 0 is a valid part of the system and may be used for valid page allocations. Nothing else in the system checks for physical address 0 for error so don't treat it as an error. Change-Id: Ie9f0dae9dace4fff3b1c3449bc89c3afdd2e63a0 CRs-Fixed: 478304 Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
This commit is contained in:
parent
6b44ed1956
commit
69cd952800
1 changed files with 0 additions and 12 deletions
|
@ -494,12 +494,6 @@ int msm_iommu_pagetable_map_range(struct iommu_pt *pt, unsigned int va,
|
|||
chunk_offset = 0;
|
||||
sg = sg_next(sg);
|
||||
pa = get_phys_addr(sg);
|
||||
if (pa == 0) {
|
||||
pr_debug("No dma address for sg %p\n",
|
||||
sg);
|
||||
ret = -EINVAL;
|
||||
goto fail;
|
||||
}
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
@ -552,12 +546,6 @@ int msm_iommu_pagetable_map_range(struct iommu_pt *pt, unsigned int va,
|
|||
chunk_offset = 0;
|
||||
sg = sg_next(sg);
|
||||
pa = get_phys_addr(sg);
|
||||
if (pa == 0) {
|
||||
pr_debug("No dma address for sg %p\n",
|
||||
sg);
|
||||
ret = -EINVAL;
|
||||
goto fail;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue