From f278be87418b8dbc1e3ebf79abb2ea0d08ca9bd7 Mon Sep 17 00:00:00 2001 From: jeff Date: Wed, 5 Mar 2008 08:08:32 +0000 Subject: - 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(-) (limited to 'sys') diff --git a/sys/kern/kern_cpuset.c b/sys/kern/kern_cpuset.c index 73fc1f4..dccb965 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); -- cgit v1.1