diff options
| author | John Dyson <dyson@FreeBSD.org> | 1998-03-08 06:21:33 +0000 |
|---|---|---|
| committer | John Dyson <dyson@FreeBSD.org> | 1998-03-08 06:21:33 +0000 |
| commit | eed2412e5adae33d0a7be30e59322fd36e497ddb (patch) | |
| tree | 83076455f85a0c5c22adac8f182cea5308488606 /sys/kern/kern_exec.c | |
| parent | ebdff85b87a7064e6ca4d2cb30d372dc61358e3f (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_exec.c')
| -rw-r--r-- | sys/kern/kern_exec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c index 64fea59004b7..fb591cd67437 100644 --- a/sys/kern/kern_exec.c +++ b/sys/kern/kern_exec.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: kern_exec.c,v 1.79 1998/03/02 05:47:55 peter Exp $ + * $Id: kern_exec.c,v 1.80 1998/03/07 21:35:17 dyson Exp $ */ #include <sys/param.h> @@ -387,7 +387,7 @@ exec_map_first_page(imgp) 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)) { + if ((rv != VM_PAGER_OK) || (ma[0] == NULL) || (ma[0]->valid == 0)) { vm_page_protect(ma[0], VM_PROT_NONE); vm_page_free(ma[0]); splx(s); |
