fix a wrong decision in __clear_pt_page()

This commit is contained in:
NAKAMURA Gou
2013-06-03 14:35:12 +09:00
parent 40ad744947
commit 80538d8800

View File

@ -399,7 +399,7 @@ static int __clear_pt_page(struct page_table *pt, void *virt, int largepage)
}
}
if ((pt->entry[l2idx] & PFL2_PRESENT)) {
if (!(pt->entry[l2idx] & PFL2_PRESENT)) {
return -EINVAL;
}