projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d47b41a
)
dlm: fix missing idr_destroy for recover_idr
author
David Teigland
<teigland@redhat.com>
Thu, 15 Nov 2018 17:17:40 +0000
(11:17 -0600)
committer
David Teigland
<teigland@redhat.com>
Thu, 15 Nov 2018 17:21:21 +0000
(11:21 -0600)
Which would leak memory for the idr internals.
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/lockspace.c
patch
|
blob
|
history
diff --git
a/fs/dlm/lockspace.c
b/fs/dlm/lockspace.c
index
3f992ef
..
a0584bc
100644
(file)
--- 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);
/*