From f3d83237eae91399947182e90d218d49054ff7c4 Mon Sep 17 00:00:00 2001 From: Gary King Date: Tue, 12 Oct 2010 15:37:01 -0700 Subject: [PATCH] [ARM] attrib_alloc: fix outer cache flush end address when allocating uncached pages, the outer cache should be flushed; the end address should be specified in bytes, not in pages. Change-Id: I3fe036f4f7e10e009f96567e3afeeef6ea603240 Signed-off-by: Gary King --- arch/arm/mm/attrib_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mm/attrib_alloc.c b/arch/arm/mm/attrib_alloc.c index 0966a8b8bf41..73be2d664669 100644 --- a/arch/arm/mm/attrib_alloc.c +++ b/arch/arm/mm/attrib_alloc.c @@ -121,6 +121,6 @@ struct page *arm_attrib_alloc_pages_exact_node(int nid, gfp_t gfp, update_pte(p, prot); } base = page_to_phys(page); - outer_flush_range(base, base + (size >> PAGE_SHIFT)); + outer_flush_range(base, base + size); return page; } -- 2.34.1