Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 321440
b: refs/heads/master
c: d2453b2
h: refs/heads/master
v: v3
  • Loading branch information
Hiroshi Doyu authored and Joerg Roedel committed Aug 3, 2012
1 parent 74c2f87 commit 35ba0b2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 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: ba1eabfade3272596000bf3c62b68ca375e48b08
refs/heads/master: d2453b2c7875dac9b323bff5d21981c41de177b1
13 changes: 8 additions & 5 deletions trunk/drivers/iommu/tegra-smmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -814,11 +814,14 @@ static int smmu_iommu_domain_init(struct iommu_domain *domain)
/* Look for a free AS with lock held */
for (i = 0; i < smmu->num_as; i++) {
as = &smmu->as[i];
if (!as->pdir_page) {
err = alloc_pdir(as);
if (!err)
goto found;
}

if (as->pdir_page)
continue;

err = alloc_pdir(as);
if (!err)
goto found;

if (err != -EAGAIN)
break;
}
Expand Down

0 comments on commit 35ba0b2

Please sign in to comment.