From c1f7d7842962589f6e8a287b3b021decf6526f1f Mon Sep 17 00:00:00 2001 From: Erez Zadok Date: Fri, 16 Nov 2007 13:45:09 -0500 Subject: [PATCH] Unionfs: debugging updates Don't perform dentry+inode checks unless both are valid. Signed-off-by: Erez Zadok --- fs/unionfs/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/unionfs/debug.c b/fs/unionfs/debug.c index 0066ccd9ec..8464fbba7f 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, -- 2.43.0