projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b982896
)
dlm: possible memory leak on error path in create_lkb()
author
Vasily Averin
<vvs@virtuozzo.com>
Thu, 15 Nov 2018 10:18:18 +0000
(13:18 +0300)
committer
David Teigland
<teigland@redhat.com>
Thu, 15 Nov 2018 15:57:22 +0000
(09:57 -0600)
Fixes
3d6aa675fff9
("dlm: keep lkbs in idr")
Cc: stable@kernel.org # 3.1
Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/lock.c
patch
|
blob
|
history
diff --git
a/fs/dlm/lock.c
b/fs/dlm/lock.c
index cc91963683ded2223648ab1233328885b4bbe0d4..2cb125cc21c98e28f0eaf18bcae3e47ec0a9002c 100644
(file)
--- a/
fs/dlm/lock.c
+++ b/
fs/dlm/lock.c
@@
-1209,6
+1209,7
@@
static int create_lkb(struct dlm_ls *ls, struct dlm_lkb **lkb_ret)
if (rv < 0) {
log_error(ls, "create_lkb idr error %d", rv);
+ dlm_free_lkb(lkb);
return rv;
}