Skip to content

Commit

Permalink
dlm: lost put_lkb on error path in receive_convert() and receive_unlo…
Browse files Browse the repository at this point in the history
…ck()

commit c0174726c3976e67da8649ac62cae43220ae173a upstream.

Fixes 6d40c4a ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
vaverin authored and gregkh committed Jan 13, 2019
1 parent 27f4aa2 commit 3ed774e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/dlm/lock.c
Expand Up @@ -4178,6 +4178,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;
}

Expand Down Expand Up @@ -4231,6 +4232,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;
}

Expand Down

0 comments on commit 3ed774e

Please sign in to comment.