mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-04 04:02:26 +00:00
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>
This commit is contained in:
parent
f58b8c3ef7
commit
5e7582f6e3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user