Kernel: Check for null in pthread_join

This commit is contained in:
2026-04-17 23:09:32 +03:00
parent a24ec0da2b
commit 8e543195b1

View File

@@ -3399,6 +3399,7 @@ namespace Kernel
{ {
if (auto ret = check_thread(); ret.has_value()) if (auto ret = check_thread(); ret.has_value())
{ {
if (user_value != nullptr)
TRY(write_to_user(user_value, &ret.value(), sizeof(void*))); TRY(write_to_user(user_value, &ret.value(), sizeof(void*)));
return 0; return 0;
} }