提交 21fa9eb2 编写于 作者: V Vasily Averin 提交者: Xie XiuQi

dlm: lost put_lkb on error path in receive_convert() and receive_unlock()

commit c0174726c3976e67da8649ac62cae43220ae173a upstream.

Fixes 6d40c4a7 ("dlm: improve error and debug messages")
Cc: stable@kernel.org # 3.5
Signed-off-by: NVasily Averin <vvs@virtuozzo.com>
Signed-off-by: NDavid Teigland <teigland@redhat.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 127fb2fd
...@@ -4180,6 +4180,7 @@ static int receive_convert(struct dlm_ls *ls, struct dlm_message *ms) ...@@ -4180,6 +4180,7 @@ static int receive_convert(struct dlm_ls *ls, struct dlm_message *ms)
(unsigned long long)lkb->lkb_recover_seq, (unsigned long long)lkb->lkb_recover_seq,
ms->m_header.h_nodeid, ms->m_lkid); ms->m_header.h_nodeid, ms->m_lkid);
error = -ENOENT; error = -ENOENT;
dlm_put_lkb(lkb);
goto fail; goto fail;
} }
...@@ -4233,6 +4234,7 @@ static int receive_unlock(struct dlm_ls *ls, struct dlm_message *ms) ...@@ -4233,6 +4234,7 @@ static int receive_unlock(struct dlm_ls *ls, struct dlm_message *ms)
lkb->lkb_id, lkb->lkb_remid, lkb->lkb_id, lkb->lkb_remid,
ms->m_header.h_nodeid, ms->m_lkid); ms->m_header.h_nodeid, ms->m_lkid);
error = -ENOENT; error = -ENOENT;
dlm_put_lkb(lkb);
goto fail; goto fail;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册