diff options
-rw-r--r-- | sys/kern/kern_exec.c | 3 | ||||
-rw-r--r-- | sys/vm/vm_glue.c | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c index fcd8530..2eec5e9 100644 --- a/sys/kern/kern_exec.c +++ b/sys/kern/kern_exec.c @@ -948,8 +948,7 @@ exec_map_first_page(imgp) initial_pagein = i; rv = vm_pager_get_pages(object, ma, initial_pagein, 0); ma[0] = vm_page_lookup(object, 0); - if ((rv != VM_PAGER_OK) || (ma[0] == NULL) || - (ma[0]->valid == 0)) { + if ((rv != VM_PAGER_OK) || (ma[0] == NULL)) { if (ma[0]) { vm_page_lock_queues(); vm_page_free(ma[0]); diff --git a/sys/vm/vm_glue.c b/sys/vm/vm_glue.c index 17a7700..b9a9ae7 100644 --- a/sys/vm/vm_glue.c +++ b/sys/vm/vm_glue.c @@ -259,7 +259,7 @@ vm_imgact_hold_page(vm_object_t object, vm_ooffset_t offset) m = vm_page_lookup(object, pindex); if (m == NULL) goto out; - if (m->valid == 0 || rv != VM_PAGER_OK) { + if (rv != VM_PAGER_OK) { vm_page_lock_queues(); vm_page_free(m); vm_page_unlock_queues(); |