OSDN Git Service

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)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 10 Nov 2019 16:56:55 +0000 (11:56 -0500)
commit69924b89687a2923e88cc42144aea27868913d0e
tree9dd6db104f357b05bf0152fcd79a51383c2fd9f3
parenta2ece088882666e1dc7113744ac912eb161e3f87
audit_get_nd(): don't unlock parent too early

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>
kernel/audit_watch.c