svn commit: r196644 - head/sys/kern
Konstantin Belousov
kib at FreeBSD.org
Sat Aug 29 18:01:02 UTC 2009
Author: kib
Date: Sat Aug 29 18:01:02 2009
New Revision: 196644
URL: http://svn.freebsd.org/changeset/base/196644
Log:
Dispose the kernel stack of the proper thread.
Submitted by: alc
MFC after: 1 week
Modified:
head/sys/kern/kern_fork.c
Modified: head/sys/kern/kern_fork.c
==============================================================================
--- head/sys/kern/kern_fork.c Sat Aug 29 16:01:21 2009 (r196643)
+++ head/sys/kern/kern_fork.c Sat Aug 29 18:01:02 2009 (r196644)
@@ -292,7 +292,7 @@ norfproc_fail:
} else {
if (td2->td_kstack == 0 || td2->td_kstack_pages != pages) {
if (td2->td_kstack != 0)
- vm_thread_dispose(td);
+ vm_thread_dispose(td2);
if (!thread_alloc_stack(td2, pages)) {
error = ENOMEM;
goto fail1;
More information about the svn-src-all
mailing list