Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 358827
b: refs/heads/master
c: 5788651
h: refs/heads/master
i:
  358825: 8c2f8a0
  358823: 2d9662a
v: v3
  • Loading branch information
Joerg Roedel committed Feb 6, 2013
1 parent 3270d23 commit 78c42d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a8b8a88a9e3042d41326c854272c881664acba1c
refs/heads/master: 57886518a8cdd319a04f5ea06a5f7ffcb8a93120
6 changes: 4 additions & 2 deletions trunk/drivers/iommu/iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,8 @@ int iommu_map(struct iommu_domain *domain, unsigned long iova,
size_t orig_size = size;
int ret = 0;

if (unlikely(domain->ops->map == NULL))
if (unlikely(domain->ops->unmap == NULL ||
domain->ops->pgsize_bitmap == 0UL))
return -ENODEV;

/* find out the minimum page size supported */
Expand Down Expand Up @@ -808,7 +809,8 @@ size_t iommu_unmap(struct iommu_domain *domain, unsigned long iova, size_t size)
size_t unmapped_page, unmapped = 0;
unsigned int min_pagesz;

if (unlikely(domain->ops->unmap == NULL))
if (unlikely(domain->ops->unmap == NULL ||
domain->ops->pgsize_bitmap == 0UL))
return -ENODEV;

/* find out the minimum page size supported */
Expand Down

0 comments on commit 78c42d5

Please sign in to comment.