commit | da51d392b3e29da9339f3afe9b429c484093813c | [log] [tgz] |
---|---|---|
author | Christoph Hellwig <hch@infradead.org> | Mon Jun 18 10:47:03 2012 -0400 |
committer | Luca Weiss <luca@z3ntu.xyz> | Fri Mar 01 17:14:56 2019 +0100 |
tree | 3d3fdce4f74f10c60a8c50cf9f1bb25a3b989633 | |
parent | 9898cc8e0dae2e1ce76f9de6b6035e780f20888c [diff] |
fs: move path_put on failure out of ->follow_link Currently the non-nd_set_link based versions of ->follow_link are expected to do a path_put(&nd->path) on failure. This calling convention is unexpected, undocumented and doesn't match what the nd_set_link-based instances do. Move the path_put out of the only non-nd_set_link based ->follow_link instance into the caller. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>