Displaying 1 result from an estimated 1 matches for "005261c".
2012 Nov 02
1
[PATCH] ocfs2:fix memory leak in dlm_add_migration_mle
...mle will become an ?orphan mle?
that no process can find and release.
Signed-off-by: Xuejiufei <xuejiufei at huawei.com>
---
fs/ocfs2/dlm/dlmmaster.c | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/fs/ocfs2/dlm/dlmmaster.c b/fs/ocfs2/dlm/dlmmaster.c
index 005261c..20d2307 100644
--- a/fs/ocfs2/dlm/dlmmaster.c
+++ b/fs/ocfs2/dlm/dlmmaster.c
@@ -284,6 +284,7 @@ static void dlm_init_mle(struct dlm_master_list_entry *mle,
mle->master = O2NM_MAX_NODES;
mle->new_master = O2NM_MAX_NODES;
mle->inuse = 0;
+ mle->assert_master = 0;
BUG_ON(mle-&g...