From: Erez Zadok Date: Tue, 13 Nov 2007 01:35:58 +0000 (-0500) Subject: Unionfs: debugging updates X-Git-Url: https://git.fsl.cs.sunysb.edu/?a=commitdiff_plain;h=0842f9a634e00a4e7b296268637a93fc1bccbcc9;p=unionfs-3.3.y.git Unionfs: debugging updates Don't perform dentry+inode checks unless both are valid. Signed-off-by: Erez Zadok --- diff --git a/fs/unionfs/debug.c b/fs/unionfs/debug.c index 0066ccd9ec7..8464fbba7f0 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,