ovl: fix dentry leak in ovl_indexdir_cleanup()

commit dc7ab6773e upstream.

index dentry was not released when breaking out of the loop
due to index verification error.

Fixes: 415543d5c6 ("ovl: cleanup bad and stale index entries on mount")
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Amir Goldstein 2017-09-24 22:19:10 +03:00 • committed by Greg Kroah-Hartman
commit caf7d229de