From: Gary King Date: Tue, 12 Oct 2010 22:37:01 +0000 (-0700) Subject: [ARM] attrib_alloc: fix outer cache flush end address X-Git-Tag: firefly_0821_release~9833^2~157^2~5 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f3d83237eae91399947182e90d218d49054ff7c4;p=firefly-linux-kernel-4.4.55.git [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 --- 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; }