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

Commit c07127b4 authored by Neale Ferguson's avatar Neale Ferguson Committed by David Teigland
Browse files

dlm: fix missing endian conversion of rcom_status flags



The flags are already converted to le when being sent,
but are not being converted back to cpu when received.

Signed-off-by: default avatarNeale Ferguson <neale@sinenomine.net>
Signed-off-by: default avatarDavid Teigland <teigland@redhat.com>
parent 2d65a9f4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -206,7 +206,7 @@ static void receive_rcom_status(struct dlm_ls *ls, struct dlm_rcom *rc_in)

	rs = (struct rcom_status *)rc_in->rc_buf;

	if (!(rs->rs_flags & DLM_RSF_NEED_SLOTS)) {
	if (!(le32_to_cpu(rs->rs_flags) & DLM_RSF_NEED_SLOTS)) {
		status = dlm_recover_status(ls);
		goto do_create;
	}