Module Name:    src
Committed By:   christos
Date:           Sat Jan 25 23:58:10 UTC 2014

Modified Files:
        src/sys/compat/netbsd32: netbsd32_exec_aout.c

Log Message:
Clear the VM_TOPDOWN flag only when we succeed.


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/sys/compat/netbsd32/netbsd32_exec_aout.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/compat/netbsd32/netbsd32_exec_aout.c
diff -u src/sys/compat/netbsd32/netbsd32_exec_aout.c:1.26 src/sys/compat/netbsd32/netbsd32_exec_aout.c:1.27
--- src/sys/compat/netbsd32/netbsd32_exec_aout.c:1.26	Sat Jan 25 00:15:43 2014
+++ src/sys/compat/netbsd32/netbsd32_exec_aout.c	Sat Jan 25 18:58:10 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: netbsd32_exec_aout.c,v 1.26 2014/01/25 05:15:43 christos Exp $	*/
+/*	$NetBSD: netbsd32_exec_aout.c,v 1.27 2014/01/25 23:58:10 christos Exp $	*/
 /*	from: NetBSD: exec_aout.c,v 1.15 1996/09/26 23:34:46 cgd Exp */
 
 /*
@@ -57,7 +57,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_exec_aout.c,v 1.26 2014/01/25 05:15:43 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_exec_aout.c,v 1.27 2014/01/25 23:58:10 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -113,7 +113,6 @@ exec_netbsd32_makecmds(struct lwp *l, st
 
 	/* this is already needed by setup_stack() */
 	epp->ep_flags |= EXEC_32;
-	epp->ep_flags &= ~EXEC_TOPDOWN_VM;
 
 	switch (midmag) {
 	case (NETBSD32_MID_MACHINE << 16) | ZMAGIC:
@@ -134,7 +133,8 @@ exec_netbsd32_makecmds(struct lwp *l, st
 	if (error) {
 		kill_vmcmds(&epp->ep_vmcmds);
 		epp->ep_flags &= ~EXEC_32;
-	}
+	} else
+		epp->ep_flags &= ~EXEC_TOPDOWN_VM;
 	return error;
 }
 

Reply via email to