UPSTREAM: 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>
(cherry picked from commit 9db4ad9183)
Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
BUG=chrome-os-partner:37894
TEST=sanity check ui
Change-Id: I07886249ad38c2e57c4a30c13abda88f8496fc93
Reviewed-on: https://chromium-review.googlesource.com/261505
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Trybot-Ready: Douglas Anderson <dianders@chromium.org>
Commit-Queue: Daniel Kurtz <djkurtz@chromium.org>
Trybot-Ready: Daniel Kurtz <djkurtz@chromium.org>
Tested-by: Daniel Kurtz <djkurtz@chromium.org>
This commit is contained in:
committed by
ChromeOS Commit Bot
parent
1e5a616927
commit
964084acea
@@ -822,7 +822,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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user