From c55416356b6eca385a3beb856557f0c11108b0a5 Mon Sep 17 00:00:00 2001 From: Erez Zadok Date: Thu, 18 Sep 2008 22:22:26 -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 2ad8c543eb7..84efb306ce9 100644 --- a/fs/unionfs/inode.c +++ b/fs/unionfs/inode.c @@ -517,7 +517,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