gpu: ion: Check return code of msm_allocate_iova_address
In the IOMMU heap, the return value of msm_allocate_iova_address needs to be checked instead of the value of the iova address. Check the return value instead. Change-Id: I4554515d17c926a7dd738824aff21eb65d2ba56a Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
This commit is contained in:
committed by
Stephen Boyd
parent
6603db2ee3
commit
030a80edba
@@ -197,7 +197,7 @@ int ion_iommu_heap_map_iommu(struct ion_buffer *buffer,
|
||||
data->mapped_size, align,
|
||||
&data->iova_addr);
|
||||
|
||||
if (!data->iova_addr)
|
||||
if (ret)
|
||||
goto out;
|
||||
|
||||
domain = msm_get_iommu_domain(domain_num);
|
||||
|
||||
Reference in New Issue
Block a user