mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
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: Neale Ferguson <neale@sinenomine.net> Signed-off-by: David Teigland <teigland@redhat.com>
This commit is contained in:
parent
2d65a9f48f
commit
c07127b48c
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user