commit 48533aaf2157e41c82cc38b2a04e45f70cea7556
Author: Erez Zadok <[EMAIL PROTECTED]>
Date:   Thu Jan 10 12:14:40 2008 -0500

    Unionfs: ensure we have lower dentries in d_iput
    
    Signed-off-by: Erez Zadok <[EMAIL PROTECTED]>

diff --git a/fs/unionfs/dentry.c b/fs/unionfs/dentry.c
index 3fce842..548bfca 100644
--- a/fs/unionfs/dentry.c
+++ b/fs/unionfs/dentry.c
@@ -525,9 +525,10 @@ static void unionfs_d_iput(struct dentry *dentry, struct 
inode *inode)
 {
        int bindex, rc;
 
+       BUG_ON(!dentry);
        unionfs_read_lock(dentry->d_sb, UNIONFS_SMUTEX_CHILD);
 
-       if (dbstart(dentry) < 0)
+       if (!UNIONFS_D(dentry) || dbstart(dentry) < 0)
                goto drop_lower_inodes;
        for (bindex = dbstart(dentry); bindex <= dbend(dentry); bindex++) {
                if (unionfs_lower_mnt_idx(dentry, bindex)) {
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs

Reply via email to