error-injection: remove meaningless null pointer check before debugfs_remove_recursive
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 17 lines · Ingo Molnar
Quoted 15 lines · zhong jiang
debugfs_remove_recursivehas taken the null pointer into account. just remove the null check beforedebugfs_remove_recursive.Signed-off-by zhong jiang <[email protected]>--- kernel/fail_function.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)kernel/fail_function.c +0
-0@@ -173,8 +173,7 @@ static void fei_debugfs_remove_attr(struct fei_attr *attr)struct dentry *dir;
Quoted 8 lines
kernel/fail_function.c static void fei_debugfs_remove_attr(struct fei_attr *attr) · line 179
Quoted 7 lines
kernel/fail_function.c +1
-2dir =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)Please Cc: such patches to lkml and akpm.
Ok, will do.
Quoted 5 lines
Thanks,
Ingo