Skip to content

Commit

Permalink
OMAP: iommu: fix wrong argument in flush_cache_vmap()
Browse files Browse the repository at this point in the history
The second argument should be the end address, not the
length. Actually there will not be any effect on the behavior of this
driver since flush_cache_vmap() calls flush_cache_all() in the end.

Signed-off-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
  • Loading branch information
Hiroshi DOYU authored and Tony Lindgren committed Aug 28, 2009
1 parent af933f4 commit 613f776
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/plat-omap/iovmm.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ static void *vmap_sg(const struct sg_table *sgt)
va += bytes;
}

flush_cache_vmap(new->addr, total);
flush_cache_vmap(new->addr, new->addr + total);
return new->addr;

err_out:
Expand Down

0 comments on commit 613f776

Please sign in to comment.