[kernel] Fix handle_list count bug

The handle_list syscall was returning j6_err_insufficient with inverted
logic - when the provided array was NOT too small.
This commit is contained in:
Justin C. Miller
2022-02-06 21:43:00 -08:00
parent 68a6007fd9
commit 278876c19d

View File

@@ -16,7 +16,7 @@ handle_list(j6_handle_t *handles, size_t *handles_len)
*handles_len = p.list_handles(handles, requested);
if (*handles_len < requested)
if (*handles_len > requested)
return j6_err_insufficient;
return j6_status_ok;