diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2023-11-12 23:12:26 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2023-12-21 18:50:31 +0100 |
commit | 5e7582f6e3a89d2fecf0a08e44ee02780c4cb4cf (patch) | |
tree | 7fca85f7e1cea3ee53eb257699addebae20cbbbe /fs/udf | |
parent | udf: d_obtain_alias(ERR_PTR(...)) will do the right thing... (diff) | |
download | linux-5e7582f6e3a89d2fecf0a08e44ee02780c4cb4cf.tar.xz linux-5e7582f6e3a89d2fecf0a08e44ee02780c4cb4cf.zip |
udf_fiiter_add_entry(): check for zero ->d_name.len is bogus...
Acked-by: Jan Kara <jack@suse.cz>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/udf')
-rw-r--r-- | fs/udf/namei.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/udf/namei.c b/fs/udf/namei.c index a64102d63781..b1674e07d5a5 100644 --- a/fs/udf/namei.c +++ b/fs/udf/namei.c @@ -228,8 +228,6 @@ static int udf_fiiter_add_entry(struct inode *dir, struct dentry *dentry, char name[UDF_NAME_LEN_CS0]; if (dentry) { - if (!dentry->d_name.len) - return -EINVAL; namelen = udf_put_filename(dir->i_sb, dentry->d_name.name, dentry->d_name.len, name, UDF_NAME_LEN_CS0); |