Fix size to copyout(9) for cpuset_getid(2).
MFC after: 3 days
This commit is contained in:
parent
ffc7e53a65
commit
a1d0659ca9
@ -1062,7 +1062,7 @@ kern_cpuset_getid(struct thread *td, cpulevel_t level, cpuwhich_t which,
|
|||||||
tmpid = set->cs_id;
|
tmpid = set->cs_id;
|
||||||
cpuset_rel(set);
|
cpuset_rel(set);
|
||||||
if (error == 0)
|
if (error == 0)
|
||||||
error = copyout(&tmpid, setid, sizeof(id));
|
error = copyout(&tmpid, setid, sizeof(tmpid));
|
||||||
|
|
||||||
return (error);
|
return (error);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user