A few quick fixes for some VM bugs.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1461 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
notion
2002-10-08 21:16:24 +00:00
parent 1d1c11443f
commit ea4148fa59
5 changed files with 13 additions and 6 deletions
+1 -1
View File
@@ -613,7 +613,7 @@ vm_page *vm_lookup_page(addr page_num)
if(page_num < physical_page_offset)
return NULL;
page_num -= physical_page_offset;
if(page_num > num_pages)
if(page_num >= num_pages)
return NULL;
return &all_pages[page_num];