mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
Fix size to copyout(9) for cpuset_getid(2).
MFC after: 3 days
This commit is contained in:
parent
ffc7e53a65
commit
a1d0659ca9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=322803
@ -1062,7 +1062,7 @@ kern_cpuset_getid(struct thread *td, cpulevel_t level, cpuwhich_t which,
|
||||
tmpid = set->cs_id;
|
||||
cpuset_rel(set);
|
||||
if (error == 0)
|
||||
error = copyout(&tmpid, setid, sizeof(id));
|
||||
error = copyout(&tmpid, setid, sizeof(tmpid));
|
||||
|
||||
return (error);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user