浏览代码

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>
Hiroshi DOYU 15 年之前
父节点
当前提交
613f77696e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      arch/arm/plat-omap/iovmm.c

+ 1 - 1
arch/arm/plat-omap/iovmm.c

@@ -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: