uprobes/core: Optimize probe hits with the help of a counter
[firefly-linux-kernel-4.4.55.git] / kernel / fork.c
index 3133b9da59d5edc1726a7ae62da2a854ba07ce8c..26a8f5c258054d30015c9203a3c1ad28e018c0ad 100644 (file)
@@ -421,6 +421,9 @@ static int dup_mmap(struct mm_struct *mm, struct mm_struct *oldmm)
 
                if (retval)
                        goto out;
+
+               if (file && uprobe_mmap(tmp))
+                       goto out;
        }
        /* a new mm has just been created */
        arch_dup_mmap(oldmm, mm);