mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 06:03:36 -04:00
iommu/core: Check for the right function pointer in iommu_map()
Check for the ->map and not the ->unmap pointer. Signed-off-by: Joerg Roedel <jroedel@suse.de>
This commit is contained in:
parent
9b29d3c651
commit
9db4ad9183
1 changed files with 1 additions and 1 deletions
|
|
@ -995,7 +995,7 @@ int iommu_map(struct iommu_domain *domain, unsigned long iova,
|
|||
size_t orig_size = size;
|
||||
int ret = 0;
|
||||
|
||||
if (unlikely(domain->ops->unmap == NULL ||
|
||||
if (unlikely(domain->ops->map == NULL ||
|
||||
domain->ops->pgsize_bitmap == 0UL))
|
||||
return -ENODEV;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue