userspace: Fix thread index type in z_thread_perms_all_clear()
The type for the thread index returned by thread_index_get() must be casted to int when comparing with (-1). Directly using uintptr_t is breaking the ARMv8 implementation where where the check (index != -1) is verified also when no thread index is returned. Signed-off-by: Carlo Caione <ccaione@baylibre.com>
This commit is contained in:
parent
2e0b86a01b
commit
f161223637
1 changed files with 1 additions and 1 deletions
|
@ -508,7 +508,7 @@ void z_thread_perms_all_clear(struct k_thread *thread)
|
|||
{
|
||||
uintptr_t index = thread_index_get(thread);
|
||||
|
||||
if (index != -1) {
|
||||
if ((int)index != -1) {
|
||||
z_object_wordlist_foreach(clear_perms_cb, (void *)index);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue