summaryrefslogtreecommitdiff
path: root/fs/binfmt_flat.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2016-06-04 15:41:49 (GMT)
committerAl Viro <viro@zeniv.linux.org.uk>2016-06-04 15:59:04 (GMT)
commitfac7d1917dfddfa53e98524f0abfbe60252740fe (patch)
tree3a4a73d44e6ed62674cd5ae4ccf57fb3bac25d0d /fs/binfmt_flat.c
parent1a695a905c18548062509178b98bc91e67510864 (diff)
downloadlinux-fac7d1917dfddfa53e98524f0abfbe60252740fe.tar.xz
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: Oleg Drokin <green@linuxhacker.ru> Reviewed-and-Tested-by: Jeff Layton <jlayton@poochiereds.net> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/binfmt_flat.c')
0 files changed, 0 insertions, 0 deletions