diff options
author | David Teigland <teigland@redhat.com> | 2018-11-15 11:17:40 -0600 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-12-21 10:34:28 +0100 |
commit | f00dc3be0ac5fa3eae960c8edab438991d193b93 (patch) | |
tree | 2988dfff0d0a7044051cbc37199e4814cc0aac95 | |
parent | a51d1b417177aec15cfeaad619316a5d857a9d2b (diff) | |
download | linux-stable-f00dc3be0ac5fa3eae960c8edab438991d193b93.tar.gz linux-stable-f00dc3be0ac5fa3eae960c8edab438991d193b93.tar.bz2 linux-stable-f00dc3be0ac5fa3eae960c8edab438991d193b93.zip |
dlm: fix missing idr_destroy for recover_idr
[ Upstream commit 8fc6ed9a3508a0435b9270c313600799d210d319 ]
Which would leak memory for the idr internals.
Signed-off-by: David Teigland <teigland@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r-- | fs/dlm/lockspace.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/dlm/lockspace.c b/fs/dlm/lockspace.c index 30e4e01db35a..b14bb2c46042 100644 --- a/fs/dlm/lockspace.c +++ b/fs/dlm/lockspace.c @@ -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); /* |