Skip to content

Commit

Permalink
orbis-kernel: fix sys_cpuset_getaffinity
Browse files Browse the repository at this point in the history
  • Loading branch information
DHrpcs3 committed Nov 14, 2024
1 parent 4ad843b commit fdce289
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion orbis-kernel/src/sys/sys_cpuset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ orbis::SysResult orbis::sys_cpuset_getaffinity(Thread *thread, cpulevel_t level,
cpuwhich_t which, id_t id,
size_t cpusetsize,
ptr<cpuset> mask) {
if (cpusetsize != sizeof(cpuset)) {
if (cpusetsize < sizeof(cpuset)) {
return ErrorCode::INVAL;
}

Expand Down

0 comments on commit fdce289

Please sign in to comment.