Commit 8bd87445 authored by Sebastian Andrzej Siewior's avatar Sebastian Andrzej Siewior Committed by Oleg Nesterov

uprobes: Remove check for uprobe variable in handle_swbp()

by the time we get here (after we pass cleanup_ret) uprobe is always is
set. If it is NULL we leave very early in the code.
Signed-off-by: default avatarSebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: default avatarOleg Nesterov <oleg@redhat.com>
parent 61e1d394
...@@ -1516,17 +1516,15 @@ static void handle_swbp(struct pt_regs *regs) ...@@ -1516,17 +1516,15 @@ static void handle_swbp(struct pt_regs *regs)
utask->active_uprobe = NULL; utask->active_uprobe = NULL;
utask->state = UTASK_RUNNING; utask->state = UTASK_RUNNING;
} }
if (uprobe) { if (!(uprobe->flags & UPROBE_SKIP_SSTEP))
if (!(uprobe->flags & UPROBE_SKIP_SSTEP))
/* /*
* cannot singlestep; cannot skip instruction; * cannot singlestep; cannot skip instruction;
* re-execute the instruction. * re-execute the instruction.
*/ */
instruction_pointer_set(regs, bp_vaddr); instruction_pointer_set(regs, bp_vaddr);
put_uprobe(uprobe); put_uprobe(uprobe);
}
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment