summaryrefslogtreecommitdiffstats
path: root/runtime/procfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/procfs.c')
-rw-r--r--runtime/procfs.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/procfs.c b/runtime/procfs.c
index eb0f845c..1b1d5447 100644
--- a/runtime/procfs.c
+++ b/runtime/procfs.c
@@ -87,8 +87,14 @@ int _stp_mkdir_proc_module(void)
goto done;
}
} else {
+ #ifdef STAPCONF_NAMEIDATA_CLEANUP
+ _stp_proc_stap = PDE(nd.path.dentry->d_inode);
+ path_put (&nd.path);
+
+ #else
_stp_proc_stap = PDE(nd.dentry->d_inode);
path_release (&nd);
+ #endif
}
_stp_proc_root = proc_mkdir(THIS_MODULE->name, _stp_proc_stap);