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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user