[PATCH kernel-next] kernel/audit_tree.c: fix the original versionmerging issue for put_tree().
From: Chen Gang
Date: Mon May 06 2013 - 03:42:21 EST
During version merging, added another redundant put_tree().
The related original patch: 1b4f5c2 kernel/audit_tree.c: tree will leak
memory when failure occurs in audit_trim_trees().
So need delete it, or it will cause issue.
Signed-off-by: Chen Gang <gang.chen@xxxxxxxxxxx>
---
kernel/audit_tree.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/kernel/audit_tree.c b/kernel/audit_tree.c
index 9fd17f0..a291aa2 100644
--- a/kernel/audit_tree.c
+++ b/kernel/audit_tree.c
@@ -621,7 +621,6 @@ void audit_trim_trees(void)
skip_it:
put_tree(tree);
mutex_lock(&audit_filter_mutex);
- put_tree(tree);
}
list_del(&cursor);
mutex_unlock(&audit_filter_mutex);
--
1.7.7.6
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/