From 8bd75bdde42a3b0035491a4eae6e18845cac05dc Mon Sep 17 00:00:00 2001 From: Jeff Roberson Date: Wed, 5 Mar 2008 08:08:32 +0000 Subject: [PATCH] - Don't overwrite the recently allocated 'nset' in cpuset_setthread() by passing it to cpuset_which(). Pass in 'set' instead. This argument is not used but for convenience cpuset_which() nulls all incoming parameters. Submitted by: davidxu --- sys/kern/kern_cpuset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/kern_cpuset.c b/sys/kern/kern_cpuset.c index 73fc1f48bef4..dccb965489a7 100644 --- a/sys/kern/kern_cpuset.c +++ b/sys/kern/kern_cpuset.c @@ -586,7 +586,7 @@ cpuset_setthread(lwpid_t id, cpuset_t *mask) int error; nset = uma_zalloc(cpuset_zone, M_WAITOK); - error = cpuset_which(CPU_WHICH_TID, id, &p, &td, &nset); + error = cpuset_which(CPU_WHICH_TID, id, &p, &td, &set); if (error) goto out; thread_lock(td);