Kernel: Fix SMAP violation in join_thread()

This commit is contained in:
Andreas Kling 2020-01-08 13:53:11 +01:00
commit 200459d644
Notes: sideshowbarker 2024-07-19 10:15:52 +09:00

View file

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