commit | 2c4d739dc6f22f2b6454fa6d16db10b33a7d5248 | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Sun Jun 10 04:15:17 2012 -0400 |
committer | Luca Weiss <luca@z3ntu.xyz> | Fri Mar 01 17:13:08 2019 +0100 |
tree | c9b789891bc315d90dcb083c9541ec0a96996384 | |
parent | efbfa63cb87176d359503a8b409fa808ba262ac9 [diff] |
namei.c: let follow_link() do put_link() on failure no need for kludgy "set cookie to ERR_PTR(...) because we failed before we did actual ->follow_link() and want to suppress put_link()", no pointless check in put_link() itself. Callers checked if follow_link() has failed anyway; might as well break out of their loops if that happened, without bothering to call put_link() first. [AV: folded fixes from hch] Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>