Fix size to copyout(9) for cpuset_getid(2).
MFC after: 3 days
This commit is contained in:
parent
c5b7650b9a
commit
cc8928bcd3
@ -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