X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=ltt-ascii.c;fp=ltt-ascii.c;h=b020fedb39a62ea1771e51d52006e2b6ed7db70d;hb=2e6246b4df9cdd984847183506f345ef92953f87;hp=ed3c20d58dfa23df49340b70e0de25bbedc7d0a3;hpb=13c601172bb6ede4e4595c718d96410173f933af;p=lttng-modules.git diff --git a/ltt-ascii.c b/ltt-ascii.c index ed3c20d5..b020fedb 100644 --- a/ltt-ascii.c +++ b/ltt-ascii.c @@ -568,7 +568,6 @@ EXPORT_SYMBOL_GPL(ltt_ascii_remove_dir); __init int ltt_ascii_init(void) { ltt_ascii_dir_dentry = debugfs_create_dir(LTT_ASCII, get_ltt_root()); - put_ltt_root(); return ltt_ascii_dir_dentry ? 0 : -EFAULT; } @@ -576,6 +575,7 @@ __init int ltt_ascii_init(void) __exit void ltt_ascii_exit(void) { debugfs_remove(ltt_ascii_dir_dentry); + put_ltt_root(); } MODULE_LICENSE("GPL and additional rights");