From ddba20c8451afbccb68592251cf63b8747890b30 Mon Sep 17 00:00:00 2001 From: zsq Date: Thu, 7 Mar 2013 09:04:56 +0800 Subject: [PATCH] fix rga mmu map process lock bug --- drivers/video/rockchip/rga/rga_mmu_info.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/video/rockchip/rga/rga_mmu_info.c b/drivers/video/rockchip/rga/rga_mmu_info.c index fc017fe9b748..e5b338f0abc3 100755 --- a/drivers/video/rockchip/rga/rga_mmu_info.c +++ b/drivers/video/rockchip/rga/rga_mmu_info.c @@ -323,6 +323,7 @@ static int rga_MapUserMemory(struct page **pages, pte = pte_offset_map_lock(current->mm, pmd, (Memory + i) << PAGE_SHIFT, &ptl); if (!pte) { + pte_unmap_unlock(pte, ptl); break; } } -- 2.34.1