commit | 8c234a58c42976b8e705a02cb66cd8761490f483 | [log] [tgz] |
---|---|---|
author | Vijayanand Jitta <vjitta@codeaurora.org> | Sun Jan 27 22:36:16 2019 +0530 |
committer | Vijayanand Jitta <vjitta@codeaurora.org> | Fri Feb 01 09:19:44 2019 +0530 |
tree | 9c93a68709ae2ed7f31a6b6ee6445ddd492112d0 | |
parent | 922649c411c41c48812cd0cbeb939c4f6f0af440 [diff] |
iommu: dma-mapping-fast: Add a check for count in fast_smmu_alloc In fast_smmu_alloc size_t variable size is type casted to int variable count, this variable count can get truncated and can result in memory corruption during unmap, make count as size_t and also add a check for count as sg_alloc_table_from_pages accepts unsigned int value for count. Change-Id: I4780a554c5c062fd9dd229e5cc0ac804b1ba31d8 Signed-off-by: Vijayanand Jitta <vjitta@codeaurora.org>