GIT: unionfs2-2.6.27.y: Unionfs: free lower paths array when destroying dentry's private data
Erez Zadok
ezk at fsl.cs.sunysb.edu
Thu Aug 12 23:18:03 EDT 2010
commit 36916e8b8370e8a6d11af0eece47d842a9061ad1
Author: Erez Zadok <ezk at cs.sunysb.edu>
Date: Mon Jul 28 00:25:46 2008 -0400
Unionfs: free lower paths array when destroying dentry's private data
CC: Hugh Dickins <hugh at veritas.com>
Signed-off-by: Erez Zadok <ezk at cs.sunysb.edu>
diff --git a/fs/unionfs/lookup.c b/fs/unionfs/lookup.c
index 37adf66..b5f64c9 100644
--- a/fs/unionfs/lookup.c
+++ b/fs/unionfs/lookup.c
@@ -450,6 +450,8 @@ void free_dentry_private_data(struct dentry *dentry)
{
if (!dentry || !dentry->d_fsdata)
return;
+ kfree(UNIONFS_D(dentry)->lower_paths);
+ UNIONFS_D(dentry)->lower_paths = NULL;
kmem_cache_free(unionfs_dentry_cachep, dentry->d_fsdata);
dentry->d_fsdata = NULL;
}
More information about the unionfs-cvs
mailing list