Do not dereference NULL pointer.

Reported by:	Peter Holm
Reviewed by:	alc
Approved by:	re (kensmith)
This commit is contained in:
Konstantin Belousov 2007-10-08 20:09:53 +00:00
parent 1649bbbb94
commit 4ab8ab9285
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=172475

View File

@ -431,14 +431,13 @@ RetryFault:;
if (!vm_page_count_severe()) {
fs.m = vm_page_alloc(fs.object, fs.pindex,
(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) {
unlock_and_deallocate(&fs);
VM_WAITPFAULT;
goto RetryFault;
}
} else if ((fs.m->valid & VM_PAGE_BITS_ALL) == VM_PAGE_BITS_ALL)
break;
}
readrest: