Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm Set p->p_addr to NULL after it gets freed.
details: https://anonhg.NetBSD.org/src/rev/61ebcb5e7cd4
branches: trunk
changeset: 488095:61ebcb5e7cd4
user: simonb <simonb%NetBSD.org@localhost>
date: Sun Jun 18 05:20:27 2000 +0000
description:
Set p->p_addr to NULL after it gets freed.
diffstat:
sys/uvm/uvm_glue.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (17 lines):
diff -r e33e617633c0 -r 61ebcb5e7cd4 sys/uvm/uvm_glue.c
--- a/sys/uvm/uvm_glue.c Sun Jun 18 04:09:54 2000 +0000
+++ b/sys/uvm/uvm_glue.c Sun Jun 18 05:20:27 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_glue.c,v 1.35 2000/06/08 05:52:34 thorpej Exp $ */
+/* $NetBSD: uvm_glue.c,v 1.36 2000/06/18 05:20:27 simonb Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -338,6 +338,7 @@
uvmspace_free(p->p_vmspace);
uvm_km_free(kernel_map, (vaddr_t)p->p_addr, USPACE);
+ p->p_addr = NULL;
}
/*
Home |
Main Index |
Thread Index |
Old Index