Kernel: Check for null in pthread_join
This commit is contained in:
@@ -3399,6 +3399,7 @@ namespace Kernel
|
||||
{
|
||||
if (auto ret = check_thread(); ret.has_value())
|
||||
{
|
||||
if (user_value != nullptr)
|
||||
TRY(write_to_user(user_value, &ret.value(), sizeof(void*)));
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user