mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
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: Hiroshi DOYU <Hiroshi.DOYU@nokia.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
This commit is contained in:
parent
af933f4729
commit
613f77696e
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue