Skip to contentSkip to conversation

omap iommu: fix wrong argument in flush_cache_vmap()

PATCH New Hiroshi DOYU 2 participants 2 messages Aug 11, 2009 – Aug 12, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 arch/arm/plat-omap/iovmm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/plat-omap/iovmm.c +1 -1
index e1b03b9..18ef59a 100644
@@ -194,7 +194,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:
Signature · 1 line
1.6.0.4
#1 lore raw

PATCH 1/1 omap iommu: fix wrong argument in flush_cache_vmap()

This patch has been applied to the linux-omap
by youw fwiendly patch wobot.

Branch in linux-omap: omap3-upstream

Initial commit ID (Likely to change): 860936a13ed727d5b83649eb5665fcc5392c2784

PatchWorks
http://patchwork.kernel.org/patch/40595/

Git (Likely to change, and takes a while to get mirrored)
http://git.kernel.org/?p=linux/kernel/git/tmlind/linux-omap-2.6.git;a=commit;h=860936a13ed727d5b83649eb5665fcc5392c2784