diff options
author | Roland McGrath <roland@redhat.com> | 2008-03-17 05:21:08 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-17 11:41:13 -0400 |
commit | 0f54091051c450bab751c3ca0cb45d61a67a683b (patch) | |
tree | adce0c9205ff85a92636d714b591638c3b964f99 | |
parent | b00de174e3d52d9185e2e9937a6a2704c9d7d520 (diff) |
x86: handle_vm86_trap cleanup
Use force_sig in handle_vm86_trap like other machine traps do.
Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r-- | arch/x86/kernel/vm86_32.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/arch/x86/kernel/vm86_32.c b/arch/x86/kernel/vm86_32.c index 6a91fcf92d6..51040698c22 100644 --- a/arch/x86/kernel/vm86_32.c +++ b/arch/x86/kernel/vm86_32.c | |||
@@ -557,16 +557,9 @@ int handle_vm86_trap(struct kernel_vm86_regs *regs, long error_code, int trapno) | |||
557 | } | 557 | } |
558 | if (trapno != 1) | 558 | if (trapno != 1) |
559 | return 1; /* we let this handle by the calling routine */ | 559 | return 1; /* we let this handle by the calling routine */ |
560 | if (current->ptrace & PT_PTRACED) { | ||
561 | unsigned long flags; | ||
562 | spin_lock_irqsave(¤t->sighand->siglock, flags); | ||
563 | sigdelset(¤t->blocked, SIGTRAP); | ||
564 | recalc_sigpending(); | ||
565 | spin_unlock_irqrestore(¤t->sighand->siglock, flags); | ||
566 | } | ||
567 | send_sig(SIGTRAP, current, 1); | ||
568 | current->thread.trap_no = trapno; | 560 | current->thread.trap_no = trapno; |
569 | current->thread.error_code = error_code; | 561 | current->thread.error_code = error_code; |
562 | force_sig(SIGTRAP, current); | ||
570 | return 0; | 563 | return 0; |
571 | } | 564 | } |
572 | 565 | ||