1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-14 22:47:35 +00:00

Kernel: Fix SMAP violation in join_thread()

This commit is contained in:
Andreas Kling 2020-01-08 13:53:11 +01:00
parent 518f469970
commit 200459d644

View file

@ -3370,7 +3370,7 @@ int Process::sys$join_thread(int tid, void** exit_value)
thread = nullptr; thread = nullptr;
if (exit_value) if (exit_value)
*exit_value = joinee_exit_value; copy_to_user(exit_value, &joinee_exit_value, sizeof(joinee_exit_value));
return 0; return 0;
} }