commit b9a1721e416e68e465f379e64669f44cf2c664d6
Author: Yiannis Pericleous <[EMAIL PROTECTED]>
Date:   Thu May 24 22:32:59 2007 -0400

    added BUG_ON to make sure dentry passed to get_parent is a dir

diff --git a/fs/unionfs/export.c b/fs/unionfs/export.c
index 
6eb656d5e554b9090d8c59c333e454ea677aa5f3..2f7d0b9efd99216a8faf58152eb539db8727284a
 100644
--- a/fs/unionfs/export.c
+++ b/fs/unionfs/export.c
@@ -117,6 +117,8 @@ static struct dentry *unionfs_get_parent
        struct inode *odf_i;
        struct dentry *odf_child, *odf_parent, *res;
 
+       BUG_ON(!S_ISDIR(child->d_inode->i_mode));
+
        res = ERR_PTR(-EACCES);
        odf = UNIONFS_SB(child->d_sb)->odf;
        odf_sb = odf->sb->d_sb;
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs

Reply via email to