diff options
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/events/uprobes.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/kernel/events/uprobes.c b/kernel/events/uprobes.c index 8d182bdecc2e..a4453d1c8199 100644 --- a/kernel/events/uprobes.c +++ b/kernel/events/uprobes.c | |||
| @@ -321,17 +321,6 @@ out: | |||
| 321 | */ | 321 | */ |
| 322 | int __weak set_swbp(struct arch_uprobe *auprobe, struct mm_struct *mm, unsigned long vaddr) | 322 | int __weak set_swbp(struct arch_uprobe *auprobe, struct mm_struct *mm, unsigned long vaddr) |
| 323 | { | 323 | { |
| 324 | int result; | ||
| 325 | /* | ||
| 326 | * See the comment near uprobes_hash(). | ||
| 327 | */ | ||
| 328 | result = is_swbp_at_addr(mm, vaddr); | ||
| 329 | if (result == 1) | ||
| 330 | return 0; | ||
| 331 | |||
| 332 | if (result) | ||
| 333 | return result; | ||
| 334 | |||
| 335 | return write_opcode(auprobe, mm, vaddr, UPROBE_SWBP_INSN); | 324 | return write_opcode(auprobe, mm, vaddr, UPROBE_SWBP_INSN); |
| 336 | } | 325 | } |
| 337 | 326 | ||
