Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 172792
b: refs/heads/master
c: 935e473
h: refs/heads/master
v: v3
  • Loading branch information
Hiroshi DOYU authored and Tony Lindgren committed Nov 22, 2009
1 parent 485e909 commit b930759
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 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: 58a5491c936957011c92f8cc5097fb3231ee3f9c
refs/heads/master: 935e4739fc4817b1044fdbeed5fe19aee9f03f45
10 changes: 6 additions & 4 deletions trunk/arch/arm/plat-omap/iovmm.c
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ u32 iommu_vmap(struct iommu *obj, u32 da, const struct sg_table *sgt,
u32 flags)
{
size_t bytes;
void *va;
void *va = NULL;

if (!obj || !obj->dev || !sgt)
return -EINVAL;
Expand All @@ -627,9 +627,11 @@ u32 iommu_vmap(struct iommu *obj, u32 da, const struct sg_table *sgt,
return -EINVAL;
bytes = PAGE_ALIGN(bytes);

va = vmap_sg(sgt);
if (IS_ERR(va))
return PTR_ERR(va);
if (flags & IOVMF_MMIO) {
va = vmap_sg(sgt);
if (IS_ERR(va))
return PTR_ERR(va);
}

flags &= IOVMF_HW_MASK;
flags |= IOVMF_DISCONT;
Expand Down

0 comments on commit b930759

Please sign in to comment.