Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 17963
b: refs/heads/master
c: 01b8faa
h: refs/heads/master
i:
  17961: d95db55
  17959: 7e72cdf
v: v3
  • Loading branch information
John Blackwood authored and Linus Torvalds committed Jan 12, 2006
1 parent bc3ac72 commit 851df4b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4839057cafc9a508ad5906857e9c1d8707c875e3
refs/heads/master: 01b8faaef5d239aeabb1e712c5d9619f29e808dd
6 changes: 2 additions & 4 deletions trunk/arch/x86_64/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -726,11 +726,9 @@ asmlinkage void __kprobes do_debug(struct pt_regs * regs,
info.si_signo = SIGTRAP;
info.si_errno = 0;
info.si_code = TRAP_BRKPT;
if (!user_mode(regs))
goto clear_dr7;
info.si_addr = user_mode(regs) ? (void __user *)regs->rip : NULL;
force_sig_info(SIGTRAP, &info, tsk);

info.si_addr = (void __user *)regs->rip;
force_sig_info(SIGTRAP, &info, tsk);
clear_dr7:
set_debugreg(0UL, 7);
return;
Expand Down

0 comments on commit 851df4b

Please sign in to comment.