Commit 613f7769 authored by Hiroshi DOYU's avatar Hiroshi DOYU Committed by Tony Lindgren

OMAP: iommu: fix wrong argument in flush_cache_vmap()

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: default avatarHiroshi DOYU <Hiroshi.DOYU@nokia.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent af933f47
...@@ -199,7 +199,7 @@ static void *vmap_sg(const struct sg_table *sgt) ...@@ -199,7 +199,7 @@ static void *vmap_sg(const struct sg_table *sgt)
va += bytes; va += bytes;
} }
flush_cache_vmap(new->addr, total); flush_cache_vmap(new->addr, new->addr + total);
return new->addr; return new->addr;
err_out: err_out:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment