From 3faf67d5372c8c3818abff6b079567950876dbde Mon Sep 17 00:00:00 2001 From: Erez Zadok Date: Fri, 19 Sep 2008 01:55:17 -0400 Subject: [PATCH] Unionfs: fix off-by-one but in mkdir Signed-off-by: Erez Zadok --- fs/unionfs/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/unionfs/inode.c b/fs/unionfs/inode.c index 3b1ae5f94f0..41a0b1c1961 100644 --- a/fs/unionfs/inode.c +++ b/fs/unionfs/inode.c @@ -508,7 +508,7 @@ static int unionfs_mkdir(struct inode *parent, struct dentry *dentry, int mode) if (err) break; - for (i = bindex + 1; i < bend; i++) { + for (i = bindex + 1; i <= bend; i++) { if (unionfs_lower_dentry_idx(dentry, i)) { dput(unionfs_lower_dentry_idx(dentry, i)); unionfs_set_lower_dentry_idx(dentry, i, NULL); -- 2.34.1