From: zsq Date: Thu, 7 Mar 2013 01:04:56 +0000 (+0800) Subject: fix rga mmu map process lock bug X-Git-Tag: firefly_0821_release~7466 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ddba20c8451afbccb68592251cf63b8747890b30;p=firefly-linux-kernel-4.4.55.git fix rga mmu map process lock bug --- 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; } }