projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f0bfd4
)
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
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Sun, 13 Jan 2019 09:01:05 +0000
(10:01 +0100)
commit
23851e978f31eda8b2d01bd410d3026659ca06c7
upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/dlm/lock.c
patch
|
blob
|
history
diff --git
a/fs/dlm/lock.c
b/fs/dlm/lock.c
index
d4aadde
..
eb58f38
100644
(file)
--- a/
fs/dlm/lock.c
+++ b/
fs/dlm/lock.c
@@
-1210,6
+1210,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;
}