diff options
author | jeff <jeff@FreeBSD.org> | 2008-03-05 08:08:32 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2008-03-05 08:08:32 +0000 |
commit | f278be87418b8dbc1e3ebf79abb2ea0d08ca9bd7 (patch) | |
tree | 477dbdd270b10e4003d2015e6cae65a7f409db40 /sys | |
parent | f780b009b80e5aa4b0abb133bbbdfdf3caf58a99 (diff) | |
download | FreeBSD-src-f278be87418b8dbc1e3ebf79abb2ea0d08ca9bd7.zip FreeBSD-src-f278be87418b8dbc1e3ebf79abb2ea0d08ca9bd7.tar.gz |
- 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
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_cpuset.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |