diff options
author | Joerg Roedel <jroedel@suse.de> | 2014-08-19 00:19:26 +0200 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2014-08-19 00:19:26 +0200 |
commit | 9db4ad9183aad0e9567f6afb23db1bdc9aa6c2a9 (patch) | |
tree | e2a46a08b7a755dc2208998e30faaf1a027cb419 /drivers/iommu | |
parent | 9b29d3c6510407d91786c1cf9183ff4debb3473a (diff) |
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>
Diffstat (limited to 'drivers/iommu')
-rw-r--r-- | drivers/iommu/iommu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c index 16983602020..ac4adb33703 100644 --- a/drivers/iommu/iommu.c +++ b/drivers/iommu/iommu.c @@ -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; |