Commit 47063b88 authored by David Teigland's avatar David Teigland Committed by Kleber Sacilotto de Souza

dlm: fix missing idr_destroy for recover_idr

BugLink: https://bugs.launchpad.net/bugs/1858489

[ Upstream commit 8fc6ed9a ]

Which would leak memory for the idr internals.
Signed-off-by: default avatarDavid Teigland <teigland@redhat.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarConnor Kuehl <connor.kuehl@canonical.com>
Signed-off-by: default avatarKleber Sacilotto de Souza <kleber.souza@canonical.com>
parent ef32a339
......@@ -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);
/*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment