projects
/
platform
/
kernel
/
swap-modules.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c810500
)
[FIX] check probe for uncreated process
author
Anatolii Nikulin
<nikulin.a@samsung.com>
Wed, 21 Oct 2015 07:46:38 +0000
(10:46 +0300)
committer
Dmitry 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
patch
|
blob
|
history
diff --git
a/uprobe/swap_uprobes.c
b/uprobe/swap_uprobes.c
index
e5a43a4
..
95ecd7d
100644
(file)
--- a/
uprobe/swap_uprobes.c
+++ b/
uprobe/swap_uprobes.c
@@
-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;