]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - queue-4.14/dlm-lost-put_lkb-on-error-path-in-receive_convert-and-receive_unlock.patch
Linux 4.19.15
[thirdparty/kernel/stable-queue.git] / queue-4.14 / dlm-lost-put_lkb-on-error-path-in-receive_convert-and-receive_unlock.patch
1 From c0174726c3976e67da8649ac62cae43220ae173a Mon Sep 17 00:00:00 2001
2 From: Vasily Averin <vvs@virtuozzo.com>
3 Date: Thu, 15 Nov 2018 13:18:24 +0300
4 Subject: dlm: lost put_lkb on error path in receive_convert() and receive_unlock()
5
6 From: Vasily Averin <vvs@virtuozzo.com>
7
8 commit c0174726c3976e67da8649ac62cae43220ae173a upstream.
9
10 Fixes 6d40c4a708e0 ("dlm: improve error and debug messages")
11 Cc: stable@kernel.org # 3.5
12
13 Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
14 Signed-off-by: David Teigland <teigland@redhat.com>
15 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16
17 ---
18 fs/dlm/lock.c | 2 ++
19 1 file changed, 2 insertions(+)
20
21 --- a/fs/dlm/lock.c
22 +++ b/fs/dlm/lock.c
23 @@ -4177,6 +4177,7 @@ static int receive_convert(struct dlm_ls
24 (unsigned long long)lkb->lkb_recover_seq,
25 ms->m_header.h_nodeid, ms->m_lkid);
26 error = -ENOENT;
27 + dlm_put_lkb(lkb);
28 goto fail;
29 }
30
31 @@ -4230,6 +4231,7 @@ static int receive_unlock(struct dlm_ls
32 lkb->lkb_id, lkb->lkb_remid,
33 ms->m_header.h_nodeid, ms->m_lkid);
34 error = -ENOENT;
35 + dlm_put_lkb(lkb);
36 goto fail;
37 }
38