diff options
author | kib <kib@FreeBSD.org> | 2009-08-29 18:01:02 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2009-08-29 18:01:02 +0000 |
commit | 7e88789784ae0e3126509bacd97d46cc20dbf6f8 (patch) | |
tree | 405790bb069d1657a2c5aed88ad5b80c882196a7 /sys | |
parent | acf2898b52f30400050f7206f0842f1c9c7cff1d (diff) | |
download | FreeBSD-src-7e88789784ae0e3126509bacd97d46cc20dbf6f8.zip FreeBSD-src-7e88789784ae0e3126509bacd97d46cc20dbf6f8.tar.gz |
Dispose the kernel stack of the proper thread.
Submitted by: alc
MFC after: 1 week
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_fork.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c index b5a4082..03d8cbc 100644 --- a/sys/kern/kern_fork.c +++ b/sys/kern/kern_fork.c @@ -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; |