Skip to content
Commit fac7d191 authored by Al Viro's avatar Al Viro
Browse files

fix EOPENSTALE bug in do_last()



EOPENSTALE occuring at the last component of a trailing symlink ends up
with do_last() retrying its lookup.  After the symlink body has been
discarded.  The thing is, all this retry_lookup logics in there is not
needed at all - the upper layers will do the right thing if we simply
return that -EOPENSTALE as we would with any other error.  Trying to
microoptimize in do_last() is a lot of headache for no good reason.

Cc: stable@vger.kernel.org # v4.2+
Tested-by: default avatarOleg Drokin <green@linuxhacker.ru>
Reviewed-and-Tested-by: default avatarJeff Layton <jlayton@poochiereds.net>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 1a695a90
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment