commit 6c0b12cd553c4bb8667316b09e0fc44075f703cd
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 6eb656d..2f7d0b9 100644
--- a/fs/unionfs/export.c
+++ b/fs/unionfs/export.c
@@ -117,6 +117,8 @@ static struct dentry *unionfs_get_parent(struct dentry 
*child)
        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