mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-03-17 12:34:01 +00:00
do_last(): get rid of duplicate ELOOP check
may_open() will catch it Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
55db2fd936
commit
47f9dbd387
1 changed files with 0 additions and 4 deletions
|
@ -3195,10 +3195,6 @@ finish_open:
|
|||
return error;
|
||||
}
|
||||
audit_inode(nd->name, nd->path.dentry, 0);
|
||||
if (unlikely(d_is_symlink(nd->path.dentry))) {
|
||||
error = -ELOOP;
|
||||
goto out;
|
||||
}
|
||||
error = -EISDIR;
|
||||
if ((open_flag & O_CREAT) && d_is_dir(nd->path.dentry))
|
||||
goto out;
|
||||
|
|
Loading…
Add table
Reference in a new issue