Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6c03da60 authored by Vasily Averin's avatar Vasily Averin Committed by Greg Kroah-Hartman
Browse files

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: default avatarVasily Averin <vvs@virtuozzo.com>
Signed-off-by: default avatarDavid Teigland <teigland@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f3d0f0a9
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -4177,6 +4177,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;
	}

@@ -4230,6 +4231,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;
	}