From af002ab8192ac669af870cccbec541353d0a02b4 Mon Sep 17 00:00:00 2001 From: Marcel Moolenaar Date: Thu, 11 Feb 2010 21:10:56 +0000 Subject: [PATCH] Initialize pve_fsid and pve_fileid to VNOVAL. --- sys/kern/sys_process.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/kern/sys_process.c b/sys/kern/sys_process.c index 3fee0ed48244..d4b5d4dec8de 100644 --- a/sys/kern/sys_process.c +++ b/sys/kern/sys_process.c @@ -424,6 +424,9 @@ ptrace_vm_entry(struct thread *td, struct proc *p, struct ptrace_vm_entry *pve) vm_map_unlock_read(map); vmspace_free(vm); + pve->pve_fsid = VNOVAL; + pve->pve_fileid = VNOVAL; + if (error == 0 && obj != NULL) { lobj = obj; for (tobj = obj; tobj != NULL; tobj = tobj->backing_object) {