Loading fs/configfs/dir.c +3 −2 Original line number Original line Diff line number Diff line Loading @@ -456,6 +456,9 @@ static struct dentry * configfs_lookup(struct inode *dir, int found = 0; int found = 0; int err; int err; if (dentry->d_name.len > NAME_MAX) return ERR_PTR(-ENAMETOOLONG); /* /* * Fake invisibility if dir belongs to a group/default groups hierarchy * Fake invisibility if dir belongs to a group/default groups hierarchy * being attached * being attached Loading Loading @@ -486,8 +489,6 @@ static struct dentry * configfs_lookup(struct inode *dir, * If it doesn't exist and it isn't a NOT_PINNED item, * If it doesn't exist and it isn't a NOT_PINNED item, * it must be negative. * it must be negative. */ */ if (dentry->d_name.len > NAME_MAX) return ERR_PTR(-ENAMETOOLONG); d_add(dentry, NULL); d_add(dentry, NULL); return NULL; return NULL; } } Loading Loading
fs/configfs/dir.c +3 −2 Original line number Original line Diff line number Diff line Loading @@ -456,6 +456,9 @@ static struct dentry * configfs_lookup(struct inode *dir, int found = 0; int found = 0; int err; int err; if (dentry->d_name.len > NAME_MAX) return ERR_PTR(-ENAMETOOLONG); /* /* * Fake invisibility if dir belongs to a group/default groups hierarchy * Fake invisibility if dir belongs to a group/default groups hierarchy * being attached * being attached Loading Loading @@ -486,8 +489,6 @@ static struct dentry * configfs_lookup(struct inode *dir, * If it doesn't exist and it isn't a NOT_PINNED item, * If it doesn't exist and it isn't a NOT_PINNED item, * it must be negative. * it must be negative. */ */ if (dentry->d_name.len > NAME_MAX) return ERR_PTR(-ENAMETOOLONG); d_add(dentry, NULL); d_add(dentry, NULL); return NULL; return NULL; } } Loading