summaryrefslogtreecommitdiff
path: root/fs/dlm
diff options
context:
space:
mode:
authorNeale Ferguson <neale@sinenomine.net>2014-10-14 15:10:48 -0500
committerDavid Teigland <teigland@redhat.com>2014-10-14 15:11:48 -0500
commitc07127b48c6367255fb4506e6d6ba6e219205607 (patch)
treea391b8c7abdc81fde25b58082b28e9bd7b61045f /fs/dlm
parent2d65a9f48fcdf7866aab6457bc707ca233e0c791 (diff)
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>
Diffstat (limited to 'fs/dlm')
-rw-r--r--fs/dlm/rcom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/dlm/rcom.c b/fs/dlm/rcom.c
index 9d61947d473a..f3f5e72a29ba 100644
--- a/fs/dlm/rcom.c
+++ b/fs/dlm/rcom.c
@@ -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;
}