dlm: fix missing idr_destroy for recover_idr

[ Upstream commit 8fc6ed9a35 ]

Which would leak memory for the idr internals.

Signed-off-by: David Teigland <teigland@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
David Teigland
2018-11-15 11:17:40 -06:00
committed by Chris
parent a023c3f9c6
commit dc97eb07d3

View File

@@ -800,6 +800,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);
/*