aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/signal_32.c
diff options
context:
space:
mode:
authorHiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>2008-09-23 20:22:32 -0400
committerIngo Molnar <mingo@elte.hu>2008-09-24 03:35:55 -0400
commit86d3237cd1a09136b4fb3a1d73d3c3fd6331cb14 (patch)
tree64c5d8dedf08827326fbc66c4e48c73f064ee5a9 /arch/x86/kernel/signal_32.c
parentee847c54ba7fc09f85f13a5bf18f45ea6c19aa83 (diff)
x86: signal: cosmetic unification of handle_signal()
Make handle_signal() same. Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/signal_32.c')
-rw-r--r--arch/x86/kernel/signal_32.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/x86/kernel/signal_32.c b/arch/x86/kernel/signal_32.c
index b94463f264b4..bb05917f232c 100644
--- a/arch/x86/kernel/signal_32.c
+++ b/arch/x86/kernel/signal_32.c
@@ -550,6 +550,15 @@ handle_signal(unsigned long sig, siginfo_t *info, struct k_sigaction *ka,
550 if (ret) 550 if (ret)
551 return ret; 551 return ret;
552 552
553#ifdef CONFIG_X86_64
554 /*
555 * This has nothing to do with segment registers,
556 * despite the name. This magic affects uaccess.h
557 * macros' behavior. Reset it to the normal setting.
558 */
559 set_fs(USER_DS);
560#endif
561
553 /* 562 /*
554 * Clear the direction flag as per the ABI for function entry. 563 * Clear the direction flag as per the ABI for function entry.
555 */ 564 */