video/rockchip: rga2: fix error page on cache flush

Change-Id: Ic23e0f6c25f68c28a87f4e4ef459bda56d4990ba
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
This commit is contained in:
Mark Yao
2017-04-28 09:57:54 +08:00
committed by Huang, Tao
parent 473b3cd1b7
commit c06e1d104b

View File

@@ -366,8 +366,7 @@ static int rga2_MapUserMemory(struct page **pages, uint32_t *pageTable,
<< PAGE_SHIFT)) & ~PAGE_MASK));
pte_unmap_unlock(pte, ptl);
pageTable[i] = (uint32_t)Address;
rga_dma_flush_page(pages[i]);
rga_dma_flush_page(pfn_to_page(pfn));
}
up_read(&current->mm->mmap_sem);
return status;