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:
kaf24@firebug.cl.cam.ac.uk committed 2006-04-22 09:45:45 +01:00
1 parent b07b5dcc56
commit 83d83bb966
1 file changed
+1 -1
+1 -1
View File
@@ -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;
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.