]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit331f89b295c6d428ae0565f6eb83f1c501094616
tree14f486537d5897e9df9fdae73dd2844c5f181af2
parent74f6b2b5cf3f9613b18be88ef198485a0ad1b2c1
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