autofs: fix a leak in autofs_expire_indirect()
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 25 Oct 2019 04:03:11 +0000 (00:03 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 25 Oct 2019 04:03:11 +0000 (00:03 -0400)
commit03ad0d703df75c43f78bd72e16124b5b94a95188
treed3915a4d9c614df558bbdd073544786e09595b5e
parent97eba80fcca754856d09e048f469db22773bec68
autofs: fix a leak in autofs_expire_indirect()

if the second call of should_expire() in there ends up
grabbing and returning a new reference to dentry, we need
to drop it before continuing.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/autofs/expire.c