- 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
This commit is contained in:
jeff 2008-03-05 08:08:32 +00:00
parent f780b009b8
commit f278be8741

View File

@ -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);