summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2016-04-27 02:52:55 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2016-05-02 19:51:13 -0400
commit47f9dbd3877d9d9757366278a65d9fb3de5c1c4e (patch)
treef594c41b493adfa1040ee183ca8594ea24657c90 /fs
parent55db2fd9361424a6a5815e7796bcf03b19df437c (diff)
downloadop-kernel-dev-47f9dbd3877d9d9757366278a65d9fb3de5c1c4e.zip
op-kernel-dev-47f9dbd3877d9d9757366278a65d9fb3de5c1c4e.tar.gz
do_last(): get rid of duplicate ELOOP check
may_open() will catch it Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
-rw-r--r--fs/namei.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/namei.c b/fs/namei.c
index ed48178..6503767 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -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;
OpenPOWER on IntegriCloud