• Al Viro's avatar
    fix EOPENSTALE bug in do_last() · fac7d191
    Al Viro authored
    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>
    fac7d191
namei.c 118 KB