Fix size to copyout(9) for cpuset_getid(2).

MFC after:	3 days
This commit is contained in:
jkim 2017-08-22 20:46:29 +00:00
parent c5b7650b9a
commit cc8928bcd3

View File

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