aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/kernel/vm86_32.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/arch/x86/kernel/vm86_32.c b/arch/x86/kernel/vm86_32.c
index 6a91fcf92d67..51040698c222 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(&current->sighand->siglock, flags);
563 sigdelset(&current->blocked, SIGTRAP);
564 recalc_sigpending();
565 spin_unlock_irqrestore(&current->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