From: Erez Zadok Date: Sat, 13 Sep 2008 03:16:26 +0000 (-0400) Subject: Unionfs: fix off-by-one but in mkdir X-Git-Url: https://git.fsl.cs.sunysb.edu/?a=commitdiff_plain;h=9b8c0d23f4a960431e21845f13364d8d8d0b7587;p=unionfs-3.2.y.git Unionfs: fix off-by-one but in mkdir Signed-off-by: Erez Zadok --- diff --git a/fs/unionfs/inode.c b/fs/unionfs/inode.c index d6eb23c15507..241297b55edc 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);