]> git.proxmox.com Git - mirror_ubuntu-artful-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)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 19 Oct 2017 14:49:06 +0000 (09:49 -0500)
commit38d1a7812fcd0d585c6d77f49c22c48800a22dd6
tree5928fb5bd8de0350d30394ff4f3c7d15bc39c2e6
parent1e7581da9dbb3ad3cb4c6c9bd3b8cc6e8610fa67
ovl: fix dentry leak in ovl_indexdir_cleanup()

BugLink: http://bugs.launchpad.net/bugs/1723145
commit dc7ab6773e8171e07f16fd0df0c5eea28c899503 upstream.

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")
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>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
fs/overlayfs/readdir.c