Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 225686
b: refs/heads/master
c: 00d4b2b
h: refs/heads/master
v: v3
  • Loading branch information
Stepan Moskovchenko authored and Daniel Walker committed Dec 1, 2010
1 parent 8512195 commit f5019d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2607b0a26094b2d2d174c3e27b2ecc9c49d86f40
refs/heads/master: 00d4b2bb03b9ed27f28336b0a68f2bd7f67caa40
5 changes: 5 additions & 0 deletions trunk/arch/arm/mach-msm/iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,11 @@ static int msm_iommu_attach_dev(struct iommu_domain *domain, struct device *dev)
goto fail;
}

if (!list_empty(&ctx_drvdata->attached_elm)) {
ret = -EBUSY;
goto fail;
}

list_for_each_entry(tmp_drvdata, &priv->list_attached, attached_elm)
if (tmp_drvdata == ctx_drvdata) {
ret = -EBUSY;
Expand Down

0 comments on commit f5019d9

Please sign in to comment.