Skip to content

Commit 5702c5e

Browse files
Cyrill Gorcunovtorvalds
authored andcommitted
c/r: prctl: Move PR_GET_TID_ADDRESS to a proper place
During merging of PR_GET_TID_ADDRESS patch the code has been misplaced (it happened to appear under PR_MCE_KILL) in result noone can use this option. Fix it by moving code snippet to a proper place. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Acked-by: Kees Cook <keescook@chromium.org> Cc: Oleg Nesterov <oleg@redhat.com> Cc: Pavel Emelyanov <xemul@parallels.com> Cc: Andrey Vagin <avagin@openvz.org> Cc: Serge Hallyn <serge.hallyn@canonical.com> Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 50d75f8 commit 5702c5e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎kernel/sys.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2127,9 +2127,6 @@ SYSCALL_DEFINE5(prctl, int, option, unsigned long, arg2, unsigned long, arg3,
21272127
else
21282128
return -EINVAL;
21292129
break;
2130-
case PR_GET_TID_ADDRESS:
2131-
error = prctl_get_tid_address(me, (int __user **)arg2);
2132-
break;
21332130
default:
21342131
return -EINVAL;
21352132
}
@@ -2147,6 +2144,9 @@ SYSCALL_DEFINE5(prctl, int, option, unsigned long, arg2, unsigned long, arg3,
21472144
case PR_SET_MM:
21482145
error = prctl_set_mm(arg2, arg3, arg4, arg5);
21492146
break;
2147+
case PR_GET_TID_ADDRESS:
2148+
error = prctl_get_tid_address(me, (int __user **)arg2);
2149+
break;
21502150
case PR_SET_CHILD_SUBREAPER:
21512151
me->signal->is_child_subreaper = !!arg2;
21522152
error = 0;

0 commit comments

Comments
 (0)