Skip to content

Commit 200459d

Browse files
committed
Kernel: Fix SMAP violation in join_thread()
1 parent 518f469 commit 200459d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Kernel/Process.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3370,7 +3370,7 @@ int Process::sys$join_thread(int tid, void** exit_value)
33703370
thread = nullptr;
33713371

33723372
if (exit_value)
3373-
*exit_value = joinee_exit_value;
3373+
copy_to_user(exit_value, &joinee_exit_value, sizeof(joinee_exit_value));
33743374
return 0;
33753375
}
33763376

0 commit comments

Comments
 (0)