1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-09 21:51:45 +00:00

kern: fix capability check for thread priorities

This commit is contained in:
Michael Scire 2021-10-19 01:41:23 -07:00
parent d3eb1268bc
commit 3fc695aff8

View file

@ -76,6 +76,9 @@ namespace ams::kern {
R_UNLESS(m_core_mask != 0, svc::ResultInvalidArgument());
R_UNLESS(m_priority_mask != 0, svc::ResultInvalidArgument());
/* Processes must not have access to kernel thread priorities. */
R_UNLESS((m_priority_mask & 0xF) == 0, svc::ResultInvalidArgument());
return ResultSuccess();
}