[FIX] check probe for uncreated process
authorAnatolii Nikulin <nikulin.a@samsung.com>
Wed, 21 Oct 2015 07:46:38 +0000 (10:46 +0300)
committerDmitry Kovalenko <d.kovalenko@samsung.com>
Wed, 21 Oct 2015 07:51:13 +0000 (00:51 -0700)
Change-Id: I3129b03ab50d8034239cac40a13bf09f5d9718c1
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
uprobe/swap_uprobes.c

index e5a43a4..95ecd7d 100644 (file)
@@ -559,6 +559,10 @@ void __swap_unregister_uprobe(struct uprobe *p, int disarm)
        struct uprobe *old_p, *list_p;
        int cleanup_p;
 
+       /* we MUST check probe for uncreated process  */
+       if (!p->task)
+               return;
+
        old_p = get_uprobe(p->addr, p->task->tgid);
        if (unlikely(!old_p))
                return;