audit_get_nd(): don't unlock parent too early
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 2 Nov 2019 17:11:41 +0000 (13:11 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 13 Dec 2019 07:51:02 +0000 (08:51 +0100)
commit7fb6ef16efc014acbc09db2ed36970dcaca416e5
tree8ba32da855dcb709439102cb6942b1b389c05576
parentaf17e1fc7cb773c7f22f7343323cf102ea52a50b
audit_get_nd(): don't unlock parent too early

[ Upstream commit 69924b89687a2923e88cc42144aea27868913d0e ]

if the child has been negative and just went positive
under us, we want coherent d_is_positive() and ->d_inode.
Don't unlock the parent until we'd done that work...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
kernel/audit_watch.c