ovl: fix memory leak on unlink of indexed file
authorAmir Goldstein <amir73il@gmail.com>
Tue, 18 Sep 2018 13:34:31 +0000 (16:34 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Oct 2018 06:54:27 +0000 (08:54 +0200)
commit8d75ecc13fdc58f39451f99f62d4d6940fd5397f
treec5d7253bb0a46c5f9c842436ecfb09ada7808d36
parentbe406434737b1bc806517a5163941292f1a84fa0
ovl: fix memory leak on unlink of indexed file

commit 63e132528032ce937126aba591a7b37ec593a6bb upstream.

The memory leak was detected by kmemleak when running xfstests
overlay/051,053

Fixes: caf70cb2ba5d ("ovl: cleanup orphan index entries")
Cc: <stable@vger.kernel.org> # v4.13
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>
fs/overlayfs/util.c