Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 116108
b: refs/heads/master
c: 734db37
h: refs/heads/master
v: v3
  • Loading branch information
Paul Mundt committed Sep 8, 2008
1 parent db6748e commit ebd0d37
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 247bc6d2ae3e2de08529977952c7d085f9d562d4
refs/heads/master: 734db3770de03fbe9ae4e78519a7d1678189788c
11 changes: 11 additions & 0 deletions trunk/arch/sh/kernel/kprobes.c
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,17 @@ static int __kprobes kprobe_handler(struct pt_regs *regs)
p = get_kprobe(addr);
if (!p) {
/* Not one of ours: let kernel handle it */
if (*(kprobe_opcode_t *)addr != BREAKPOINT_INSTRUCTION) {
/*
* The breakpoint instruction was removed right
* after we hit it. Another cpu has removed
* either a probepoint or a debugger breakpoint
* at this address. In either case, no further
* handling of this interrupt is appropriate.
*/
ret = 1;
}

goto no_kprobe;
}

Expand Down

0 comments on commit ebd0d37

Please sign in to comment.