The patch titled Subject: kernel/fail_function.c: remove meaningless null pointer check before debugfs_remove_recursive has been added to the -mm tree. Its filename is error-injection-remove-meaningless-null-pointer-check-before-debugfs_remove_recursive.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/error-injection-remove-meaningless-null-pointer-check-before-debugfs_remove_recursive.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/error-injection-remove-meaningless-null-pointer-check-before-debugfs_remove_recursive.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: zhong jiang <zhongjiang@xxxxxxxxxx> Subject: kernel/fail_function.c: remove meaningless null pointer check before debugfs_remove_recursive debugfs_remove_recursive() has taken the null pointer into account. just remove the null check before debugfs_remove_recursive(). Link: http://lkml.kernel.org/r/1537494404-16473-1-git-send-email-zhongjiang@xxxxxxxxxx Signed-off-by: zhong jiang <zhongjiang@xxxxxxxxxx> Acked-by: Masami Hiramatsu <mhiramat@xxxxxxxxxx> Acked-by: Kees Cook <keescook@xxxxxxxxxxxx> Cc: Ingo Molnar <mingo@xxxxxxxxxx> Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- kernel/fail_function.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/kernel/fail_function.c~error-injection-remove-meaningless-null-pointer-check-before-debugfs_remove_recursive +++ a/kernel/fail_function.c @@ -173,8 +173,7 @@ static void fei_debugfs_remove_attr(stru struct dentry *dir; dir = debugfs_lookup(attr->kp.symbol_name, fei_debugfs_dir); - if (dir) - debugfs_remove_recursive(dir); + debugfs_remove_recursive(dir); } static int fei_kprobe_handler(struct kprobe *kp, struct pt_regs *regs) _ Patches currently in -mm which might be from zhongjiang@xxxxxxxxxx are ocfs2-fix-a-gcc-compiled-warning.patch mm-use-match_string-helper-to-simplify-the-code.patch mm-page_owner-align-with-pageblock_nr-pages.patch error-injection-remove-meaningless-null-pointer-check-before-debugfs_remove_recursive.patch radix-tree-use-div_round_up-instead-of-reimplementing-its-function.patch lib-sg_pool-remove-unnecessary-null-check-when-free-the-object.patch kernel-kexec_file-remove-some-duplicated-include-file.patch