From 7062f86d2f5b71a6b5a3be2a1e9d408ffa196680 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Thu, 8 Sep 2011 08:22:47 +0800 Subject: [PATCH] Kernel/tpl_phys - Fixed bug in GetPageNode --- Kernel/include/tpl_mm_phys_bitmap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/include/tpl_mm_phys_bitmap.h b/Kernel/include/tpl_mm_phys_bitmap.h index 19ef5096..89c942b0 100644 --- a/Kernel/include/tpl_mm_phys_bitmap.h +++ b/Kernel/include/tpl_mm_phys_bitmap.h @@ -386,8 +386,8 @@ int MM_SetPageNode(tPAddr PAddr, void *Node) int MM_GetPageNode(tPAddr PAddr, void **Node) { - PAddr >>= 12; if( !MM_GetRefCount(PAddr) ) return 1; + PAddr >>= 12; if( !MM_GetPhysAddr( (tVAddr)&gapPageNodes[PAddr] ) ) { *Node = NULL; -- 2.20.1