let path_init() failures treated the same way as subsequent link_path_walk()
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 12 Oct 2014 03:05:52 +0000 (23:05 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 12 Oct 2014 21:09:04 +0000 (17:09 -0400)
commit115cbfdc609702a131c51281864c08f5d27b459a
tree14f486537d5897e9df9fdae73dd2844c5f181af2
parent24dff96a37a2ca319e75a74d3929b2de22447ca6
let path_init() failures treated the same way as subsequent link_path_walk()

As it is, path_lookupat() and path_mounpoint() might end up leaking struct file
reference in some cases.

Spotted-by: Eric Biggers <ebiggers3@gmail.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namei.c