diff --git a/fs/namei.c b/fs/namei.c index ed48178ada1903bdc5c8c24c9ce11dab619da5ef..6503767746f6a644421e6df6ca011204977e6c09 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -3195,10 +3195,6 @@ static int do_last(struct nameidata *nd, 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;