- 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:
parent
f780b009b8
commit
f278be8741
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user