commit | 0c2e37c9b4623b3aa8cc03a10cfb9aad3378d000 | [log] [tgz] |
---|---|---|
author | qqzhou <qqzhou@codeaurora.org> | Fri Jul 27 15:24:06 2018 +0800 |
committer | qqzhou <qqzhou@codeaurora.org> | Tue Aug 14 16:55:59 2018 +0800 |
tree | d58eb844e1c60d5107730bb0233f135ba200dbb9 | |
parent | 9b0f7eab5402ad9b18cced789d8aedc23a7cfa82 [diff] |
arm: dma-mapping: Add iova checks in arm_iommu_map_sg In arm_iommu_map_sg(), will execute __alloc_iova() and then use this returned iova to execute iommu_map_sg(), when this iova is DMA_ERROR_CODE, the value is 0xffffffff, pgsize will be zero and then issue happens. For the DMA_ERROR_CODE iova value, should not be allowed to map sg, add checks to avoid it. Change-Id: Ic1620075080b88b4dbcff4f5a909dd8149b70507 Signed-off-by: Qingqing Zhou <qqzhou@codeaurora.org>