ovl: fix dentry leak in ovl_indexdir_cleanup()
authorAmir Goldstein <amir73il@gmail.com>
Sun, 24 Sep 2017 19:19:10 +0000 (22:19 +0300)
committerMiklos Szeredi <mszeredi@redhat.com>
Thu, 5 Oct 2017 13:53:18 +0000 (15:53 +0200)
commitdc7ab6773e8171e07f16fd0df0c5eea28c899503
treec02dbf8207d2c36f1bab680fa453428205221b50
parent9f4ec904dbd4eb1a2db10d5e7dc16eae386fe64d
ovl: fix dentry leak in ovl_indexdir_cleanup()

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

Fixes: 415543d5c64f ("ovl: cleanup bad and stale index entries on mount")
Cc: <stable@vger.kernel.org> # v4.13
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/readdir.c