summaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/dlm/dlmdebug.h
diff options
context:
space:
mode:
authorJoseph Qi <joseph.qi@huawei.com>2016-07-27 00:21:38 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2016-07-27 01:19:19 +0200
commit8ec7b17a668403435a7ab09b952e7f2eca61cf20 (patch)
tree70e3c3ece76ba60b3bbeef0961939c5ad4461dbc /fs/ocfs2/dlm/dlmdebug.h
parentocfs2: cleanup unneeded goto in ocfs2_create_new_inode_locks (diff)
downloadlinux-8ec7b17a668403435a7ab09b952e7f2eca61cf20.tar.xz
linux-8ec7b17a668403435a7ab09b952e7f2eca61cf20.zip
ocfs2/dlm: fix memory leak of dlm_debug_ctxt
dlm_debug_ctxt->debug_refcnt is initialized to 1 and then increased to 2 by dlm_debug_get in dlm_debug_init. But dlm_debug_put is called only once in dlm_debug_shutdown during unregister dlm, which leads to dlm_debug_ctxt leaked. Link: http://lkml.kernel.org/r/577BB755.4030900@huawei.com Signed-off-by: Joseph Qi <joseph.qi@huawei.com> Reviewed-by: Jiufei Xue <xuejiufei@huawei.com> Cc: Mark Fasheh <mfasheh@suse.de> Cc: Joel Becker <jlbec@evilplan.org> Cc: Junxiao Bi <junxiao.bi@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '')
-rw-r--r--fs/ocfs2/dlm/dlmdebug.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/ocfs2/dlm/dlmdebug.h b/fs/ocfs2/dlm/dlmdebug.h
index 1f27c4812d1a..5ced5482e7d3 100644
--- a/fs/ocfs2/dlm/dlmdebug.h
+++ b/fs/ocfs2/dlm/dlmdebug.h
@@ -30,7 +30,6 @@ void dlm_print_one_mle(struct dlm_master_list_entry *mle);
#ifdef CONFIG_DEBUG_FS
struct dlm_debug_ctxt {
- struct kref debug_refcnt;
struct dentry *debug_state_dentry;
struct dentry *debug_lockres_dentry;
struct dentry *debug_mle_dentry;