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

Commit 66f502a4 authored by David Teigland's avatar David Teigland Committed by Mark Fasheh
Browse files

ocfs2: initialize stack_user lvbptr



The locking_state dump, ocfs2_dlm_seq_show, reads the lvb on locks where it
has not yet been initialized by a lock call.

Signed-off-by: default avatarDavid Teigland <teigland@redhat.com>
Acked-by: default avatarJoel Becker <joel.becker@oracle.com>
Signed-off-by: default avatarMark Fasheh <mfasheh@suse.com>
parent 3b5da018
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -740,6 +740,9 @@ static int user_dlm_lock_status(union ocfs2_dlm_lksb *lksb)

static void *user_dlm_lvb(union ocfs2_dlm_lksb *lksb)
{
	if (!lksb->lksb_fsdlm.sb_lvbptr)
		lksb->lksb_fsdlm.sb_lvbptr = (char *)lksb +
					     sizeof(struct dlm_lksb);
	return (void *)(lksb->lksb_fsdlm.sb_lvbptr);
}