commit 422a09d6edafc681f1d473924b2ab47ad33d5202
Author: Yiannis Pericleous <[EMAIL PROTECTED]>
Date: Thu Mar 15 18:30:05 2007 -0400
zero out new_nd
diff --git a/fs/unionfs/lookup.c b/fs/unionfs/lookup.c
index dcf2fb9..cd8820e 100644
--- a/fs/unionfs/lookup.c
+++ b/fs/unionfs/lookup.c
@@ -78,9 +78,10 @@ struct dentry *unionfs_lookup_backend(struct dentry *dentry,
struct nameidata *n
bopaque = dbopaque(parent_dentry);
BUG_ON(bstart < 0);
- if (nd == NULL)
+ if (nd == NULL){
+ memset(&new_nd, 0, sizeof(struct nameidata));
nd = &new_nd;
-
+ }
/* It would be ideal if we could convert partial lookups to only have
* to do this work when they really need to. It could probably improve
* performance quite a bit, and maybe simplify the rest of the code.
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs