From 13a903cc8b5b5c13777d963441ab6864510d5dc1 Mon Sep 17 00:00:00 2001 From: Erez Zadok Date: Fri, 12 Sep 2008 23:16: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 d6eb23c1550..241297b55ed 100644 --- a/fs/unionfs/inode.c +++ b/fs/unionfs/inode.c @@ -516,7 +516,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