1
0
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:
Jung-uk Kim 2017-08-22 20:46:29 +00:00
parent ffc7e53a65
commit a1d0659ca9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=322803

View File

@ -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);
}