summaryrefslogtreecommitdiffstats
path: root/tapset/process.stp
diff options
context:
space:
mode:
Diffstat (limited to 'tapset/process.stp')
-rw-r--r--tapset/process.stp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tapset/process.stp b/tapset/process.stp
index b28a72cd..7aab9379 100644
--- a/tapset/process.stp
+++ b/tapset/process.stp
@@ -25,8 +25,8 @@ function _IS_ERR:long(ptr:long) %{ /* pure */
*/
probe process.create = kernel.function("copy_process").return {
task = $return
- new_pid = task_pid(task)
if (_IS_ERR(task)) next
+ new_pid = task_pid(task)
}