iommu: msm: Provide the IOMMU_NOEXEC flag explicitly during mapping
The logic for the iommu executable flag is inverted now and all the iommu mappings are executable by default. Provide the IOMMU_NOEXEC flag where the mapping needs to be non-executable. Change-Id: Ifa0aa3d17ae79c16abdf66d2177a09b868a9f45f Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org> [pdaly@codeaurora.org Remove kgsl/display modifications] Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
This commit is contained in:
parent
86d54e985a
commit
20b0cbf55a
1 changed files with 1 additions and 1 deletions
|
@ -1328,7 +1328,7 @@ __iommu_create_mapping(struct device *dev, struct page **pages, size_t size)
|
|||
|
||||
len = (j - i) << PAGE_SHIFT;
|
||||
ret = iommu_map(mapping->domain, iova, phys, len,
|
||||
IOMMU_READ|IOMMU_WRITE);
|
||||
IOMMU_READ|IOMMU_WRITE|IOMMU_NOEXEC);
|
||||
if (ret < 0)
|
||||
goto fail;
|
||||
iova += len;
|
||||
|
|
Loading…
Add table
Reference in a new issue