summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@redhat.com>2012-09-14 19:05:46 +0200
committerAnton Arapov <anton@redhat.com>2012-10-29 11:50:13 +0100
commit8a661b7d1772c6caf07016c42e815e556f09fc38 (patch)
treed45428beb0b61be13216d1190821cf29036ac02f /arch
parenta9fcee1046ab98cb79f481f47850928789e55592 (diff)
downloadkernel-uprobes-8a661b7d1772c6caf07016c42e815e556f09fc38.tar.gz
kernel-uprobes-8a661b7d1772c6caf07016c42e815e556f09fc38.tar.xz
kernel-uprobes-8a661b7d1772c6caf07016c42e815e556f09fc38.zip
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 'arch')
-rw-r--r--arch/x86/kernel/signal.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/x86/kernel/signal.c b/arch/x86/kernel/signal.c
index b280908a376..0041e5a5293 100644
--- a/arch/x86/kernel/signal.c
+++ b/arch/x86/kernel/signal.c
@@ -785,10 +785,8 @@ do_notify_resume(struct pt_regs *regs, void *unused, __u32 thread_info_flags)
mce_notify_process();
#endif /* CONFIG_X86_64 && CONFIG_X86_MCE */
- if (thread_info_flags & _TIF_UPROBE) {
- clear_thread_flag(TIF_UPROBE);
+ if (thread_info_flags & _TIF_UPROBE)
uprobe_notify_resume(regs);
- }
/* deal with pending signal delivery */
if (thread_info_flags & _TIF_SIGPENDING)