]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita10a4de6dfbc910ff4c491dc52aef1be5368df57
treec02dbf8207d2c36f1bab680fa453428205221b50
parentd151910927b05c0da560738db1ad975a690447e3
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: beffb1e56941 ("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