mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
Fix VM_RESERVED check in vm_normal_page(). Pointed out by
Isaku Yamahata. Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
1 parent
b07b5dcc56
commit
83d83bb966
1 file changed
+1
-1
@@ -405,7 +405,7 @@ struct page *vm_normal_page(struct vm_area_struct *vma, unsigned long addr, pte_
|
||||
* Remove this test eventually!
|
||||
*/
|
||||
if (unlikely(!pfn_valid(pfn))) {
|
||||
if (!vma->vm_flags & VM_RESERVED)
|
||||
if (!(vma->vm_flags & VM_RESERVED))
|
||||
print_bad_pte(vma, pte, addr);
|
||||
return NULL;
|
||||
}
|
||||
|
||||