aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/fs/dlm
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2018-11-15 11:17:40 -0600
committerDavid Teigland <teigland@redhat.com>2018-11-15 11:21:21 -0600
commit8fc6ed9a3508a0435b9270c313600799d210d319 (patch)
treeae435d2fd7e544cdc43cb6dec56ae0625c3ef6e7 /fs/dlm
parentdlm: memory leaks on error path in dlm_user_request() (diff)
downloadwireguard-linux-8fc6ed9a3508a0435b9270c313600799d210d319.tar.xz
wireguard-linux-8fc6ed9a3508a0435b9270c313600799d210d319.zip
dlm: fix missing idr_destroy for recover_idr
Which would leak memory for the idr internals. Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm')
-rw-r--r--fs/dlm/lockspace.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/dlm/lockspace.c b/fs/dlm/lockspace.c
index 3f992ef7a8c8..a0584bc5209a 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);
/*