Message ID | alpine.DEB.2.02.1408081554110.2293@kaball.uk.xensource.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/arch/arm/xen/mm32.c b/arch/arm/xen/mm32.c index 534f362..3b99860 100644 --- a/arch/arm/xen/mm32.c +++ b/arch/arm/xen/mm32.c @@ -131,7 +131,7 @@ static void __xen_dma_page_dev_to_cpu(struct device *hwdev, dma_addr_t handle, /* Cannot use __dma_page_dev_to_cpu because we don't have a * struct page for handle */ - if (dir == DMA_TO_DEVICE) + if (dir != DMA_TO_DEVICE) outer_inv_range(handle, handle + size); dma_cache_maint(handle & PAGE_MASK, handle & ~PAGE_MASK, size, dir, dmac_unmap_area);