Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Initialize the in/out parameter vmin.
details: https://anonhg.NetBSD.org/src/rev/122c569ccd45
branches: trunk
changeset: 827214:122c569ccd45
user: riastradh <riastradh%NetBSD.org@localhost>
date: Fri Oct 20 19:06:46 2017 +0000
description:
Initialize the in/out parameter vmin.
vmin is only an optional hint since we're not passing UVM_FLAG_FIXED,
but that doesn't mean we should use uninitialized stack garbage as
the hint.
Noted by chs@.
diffstat:
sys/kern/kern_exec.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r c63c9a05d588 -r 122c569ccd45 sys/kern/kern_exec.c
--- a/sys/kern/kern_exec.c Fri Oct 20 14:48:43 2017 +0000
+++ b/sys/kern/kern_exec.c Fri Oct 20 19:06:46 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_exec.c,v 1.448 2017/10/20 14:48:43 riastradh Exp $ */
+/* $NetBSD: kern_exec.c,v 1.449 2017/10/20 19:06:46 riastradh Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -59,7 +59,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.448 2017/10/20 14:48:43 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.449 2017/10/20 19:06:46 riastradh Exp $");
#include "opt_exec.h"
#include "opt_execfmt.h"
@@ -1821,7 +1821,7 @@
if (init_boot) {
/* do one-time initializations */
- vaddr_t vmin, vmax;
+ vaddr_t vmin = 0, vmax;
rw_init(&exec_lock);
mutex_init(&sigobject_lock, MUTEX_DEFAULT, IPL_NONE);
Home |
Main Index |
Thread Index |
Old Index