Kprobes : Recursively remove the directory on failure
PATCH 1/1 Kprobes : Recursively remove the directory on failure
Remove the "kprobes" directory recursivly if "enabled" file creation fails
Signed-off-by Sasikantha babu <[email protected]>
--- kernel/kprobes.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
kernel/kprobes.c +1 -1
@@ -2251,7 +2251,7 @@ static int __kprobes debugfs_kprobe_init(void) file =debugfs_create_file ("enabled" ,0600 , dir, &value, &fops_kp);if (!file) { -debugfs_remove (dir); +debugfs_remove_recursive (dir);return -ENOMEM ; }
Signature · 1 line
1.7.3.4
Quoted 3 lines · Sasikantha babu
Remove the "kprobes" directory recursivly if "enabled" file creation fails
Signed-off-by Sasikantha babu <[email protected]>
Right, this should remove recursively, because there is "list" file already.
Thank you!
Acked-by Masami Hiramatsu <[email protected]>
Quoted 17 lines
--- kernel/kprobes.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)kernel/kprobes.c +1
-1@@ -2251,7 +2251,7 @@ static int __kprobes debugfs_kprobe_init(void) file =debugfs_create_file ("enabled" ,0600 , dir, &value, &fops_kp);if (!file) { -debugfs_remove (dir); +debugfs_remove_recursive (dir);return -ENOMEM ; }
Signature · 4 lines
Masami HIRAMATSU Software Platform Research Dept. Linux Technology Center Hitachi, Ltd., Yokohama Research Laboratory E-mail: [email protected]