Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2de949af authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "iommu: dma-iommu: Handle error case properly"

parents e365331f 5e42b78c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -451,7 +451,7 @@ static dma_addr_t iommu_dma_alloc_iova(struct iommu_domain *domain,

	ret_iova = (dma_addr_t)iova << shift;

	if (guard_len &&
	if (ret_iova && guard_len &&
		iommu_map(domain, ret_iova + size,
			page_to_phys(cookie->guard_page),
			guard_len, ARM_SMMU_GUARD_PROT)) {