CVSR -> E------------------------------------------------------------------


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@102 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
David Reid 2002-07-11 22:18:07 +00:00
parent f16873a60e
commit 394b2aa25b

View File

@ -354,12 +354,12 @@ int vm_mark_page_range_inuse(addr start_page, addr len)
if(physical_page_offset > start_page) {
dprintf("vm_mark_page_range_inuse: start page %ld is before free list\n", start_page);
return ERR_INVALID_ARGS;
return EINVAL;
}
start_page -= physical_page_offset;
if(start_page + len >= num_pages) {
dprintf("vm_mark_page_range_inuse: range would extend past free list\n");
return ERR_INVALID_ARGS;
return EINVAL;
}
state = int_disable_interrupts();