summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@redhat.com>2012-09-14 19:05:46 +0200
committerOleg Nesterov <oleg@redhat.com>2012-09-29 21:21:53 +0200
commitdb023ea595015058270be6a62fe60a7b6b5c50d7 (patch)
tree44e26d8b5bb73d5847150af9d5c9a3fa25bf3573 /kernel
parent1b08e907211cdc744f54871736005d9f3e7f182c (diff)
downloadop-kernel-dev-db023ea595015058270be6a62fe60a7b6b5c50d7.zip
op-kernel-dev-db023ea595015058270be6a62fe60a7b6b5c50d7.tar.gz
uprobes: Move clear_thread_flag(TIF_UPROBE) to uprobe_notify_resume()
Move clear_thread_flag(TIF_UPROBE) from do_notify_resume() to uprobe_notify_resume() for !CONFIG_UPROBES case. Signed-off-by: Oleg Nesterov <oleg@redhat.com> Acked-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/events/uprobes.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/events/uprobes.c b/kernel/events/uprobes.c
index d3f5381..198d732 100644
--- a/kernel/events/uprobes.c
+++ b/kernel/events/uprobes.c
@@ -1558,6 +1558,8 @@ void uprobe_notify_resume(struct pt_regs *regs)
{
struct uprobe_task *utask;
+ clear_thread_flag(TIF_UPROBE);
+
utask = current->utask;
if (utask && utask->active_uprobe)
handle_singlestep(utask, regs);
OpenPOWER on IntegriCloud