commit ee7b1e58e5496cf792de10c91c63a38851ca7fae
Author: Erez Zadok <[EMAIL PROTECTED]>
Date:   Mon Nov 12 20:45:43 2007 -0500

    Unionfs: debugging updates
    
    Don't perform dentry+inode checks unless both are valid.
    
    Signed-off-by: Erez Zadok <[EMAIL PROTECTED]>

diff --git a/fs/unionfs/debug.c b/fs/unionfs/debug.c
index 0af0f4e..78c1f24 100644
--- a/fs/unionfs/debug.c
+++ b/fs/unionfs/debug.c
@@ -299,7 +299,7 @@ check_inode:
         * be NULL.  But, check that all three are NULL: lower dentry, mnt,
         * and inode.
         */
-       if (S_ISDIR(inode->i_mode))
+       if (dstart >= 0 && dend >= 0 && S_ISDIR(inode->i_mode))
                for (bindex = dstart+1; bindex < dend; bindex++) {
                        lower_inode = unionfs_lower_inode_idx(inode, bindex);
                        lower_dentry = unionfs_lower_dentry_idx(dentry,
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs

Reply via email to