From: David Teigland Date: Thu, 15 Nov 2018 17:17:40 +0000 (-0600) Subject: dlm: fix missing idr_destroy for recover_idr X-Git-Tag: v4.19.89~204 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1bcac298b943ebe41143f2b8ccb6ffd1d77155b9;p=thirdparty%2Fkernel%2Fstable.git dlm: fix missing idr_destroy for recover_idr [ Upstream commit 8fc6ed9a3508a0435b9270c313600799d210d319 ] Which would leak memory for the idr internals. Signed-off-by: David Teigland Signed-off-by: Sasha Levin --- diff --git a/fs/dlm/lockspace.c b/fs/dlm/lockspace.c index 6a1529e478f3d..f1261fa0af8a1 100644 --- a/fs/dlm/lockspace.c +++ b/fs/dlm/lockspace.c @@ -807,6 +807,7 @@ static int release_lockspace(struct dlm_ls *ls, int force) dlm_delete_debug_file(ls); + idr_destroy(&ls->ls_recover_idr); kfree(ls->ls_recover_buf); /*