Do not dereference NULL pointer.
Reported by: Peter Holm Reviewed by: alc Approved by: re (kensmith)
This commit is contained in:
parent
1649bbbb94
commit
4ab8ab9285
@ -431,14 +431,13 @@ RetryFault:;
|
|||||||
if (!vm_page_count_severe()) {
|
if (!vm_page_count_severe()) {
|
||||||
fs.m = vm_page_alloc(fs.object, fs.pindex,
|
fs.m = vm_page_alloc(fs.object, fs.pindex,
|
||||||
(fs.vp || fs.object->backing_object)? VM_ALLOC_NORMAL: VM_ALLOC_ZERO);
|
(fs.vp || fs.object->backing_object)? VM_ALLOC_NORMAL: VM_ALLOC_ZERO);
|
||||||
if ((fs.m->valid & VM_PAGE_BITS_ALL) == VM_PAGE_BITS_ALL)
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
if (fs.m == NULL) {
|
if (fs.m == NULL) {
|
||||||
unlock_and_deallocate(&fs);
|
unlock_and_deallocate(&fs);
|
||||||
VM_WAITPFAULT;
|
VM_WAITPFAULT;
|
||||||
goto RetryFault;
|
goto RetryFault;
|
||||||
}
|
} else if ((fs.m->valid & VM_PAGE_BITS_ALL) == VM_PAGE_BITS_ALL)
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
readrest:
|
readrest:
|
||||||
|
Loading…
Reference in New Issue
Block a user