Messages in this thread | | | Date | Fri, 06 Apr 2012 16:53:12 +0900 | From | Masami Hiramatsu <> | Subject | Re: [PATCH] Kprobes : Recursively remove the directory on failure |
| |
(2012/04/04 0:35), Sasikantha babu wrote: > Remove the "kprobes" directory recursivly if "enabled" file creation fails > > Signed-off-by: Sasikantha babu <sasikanth.v19@gmail.com>
Right, this should remove recursively, because there is "list" file already. Thank you!
Acked-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
> --- > kernel/kprobes.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/kernel/kprobes.c b/kernel/kprobes.c > index c62b854..9b45515 100644 > --- a/kernel/kprobes.c > +++ b/kernel/kprobes.c > @@ -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; > } >
-- Masami HIRAMATSU Software Platform Research Dept. Linux Technology Center Hitachi, Ltd., Yokohama Research Laboratory E-mail: masami.hiramatsu.pt@hitachi.com
| |