projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23851e9
)
dlm: lost put_lkb on error path in receive_convert() and receive_unlock()
author
Vasily Averin
<vvs@virtuozzo.com>
Thu, 15 Nov 2018 10:18:24 +0000
(13:18 +0300)
committer
David Teigland
<teigland@redhat.com>
Thu, 15 Nov 2018 15:57:22 +0000
(09:57 -0600)
Fixes
6d40c4a708e0
("dlm: improve error and debug messages")
Cc: stable@kernel.org # 3.5
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 2cb125cc21c98e28f0eaf18bcae3e47ec0a9002c..03d767b94f7b4693a9385906454e94b4336cc0bf 100644
(file)
--- a/
fs/dlm/lock.c
+++ b/
fs/dlm/lock.c
@@
-4180,6
+4180,7
@@
static int receive_convert(struct dlm_ls *ls, struct dlm_message *ms)
(unsigned long long)lkb->lkb_recover_seq,
ms->m_header.h_nodeid, ms->m_lkid);
error = -ENOENT;
+ dlm_put_lkb(lkb);
goto fail;
}
@@
-4233,6
+4234,7
@@
static int receive_unlock(struct dlm_ls *ls, struct dlm_message *ms)
lkb->lkb_id, lkb->lkb_remid,
ms->m_header.h_nodeid, ms->m_lkid);
error = -ENOENT;
+ dlm_put_lkb(lkb);
goto fail;
}