lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20120104071842.GB30978@elgon.mountain>
Date:	Wed, 4 Jan 2012 10:18:42 +0300
From:	Dan Carpenter <dan.carpenter@...cle.com>
To:	Christine Caulfield <ccaulfie@...hat.com>
Cc:	David Teigland <teigland@...hat.com>, cluster-devel@...hat.com,
	linux-kernel@...r.kernel.org, kernel-janitors@...r.kernel.org
Subject: [patch] dlm: le32 vs le16

->rf_our_slot and ->rf_num_slots are le16 so we should use cpu_to_le16()
here.

Signed-off-by: Dan Carpenter <dan.carpenter@...cle.com>

diff --git a/fs/dlm/rcom.c b/fs/dlm/rcom.c
index 8f5a1b2..ac5c616 100644
--- a/fs/dlm/rcom.c
+++ b/fs/dlm/rcom.c
@@ -89,8 +89,8 @@ static void set_rcom_config(struct dlm_ls *ls, struct rcom_config *rf,
 	rf->rf_lvblen = cpu_to_le32(ls->ls_lvblen);
 	rf->rf_lsflags = cpu_to_le32(ls->ls_exflags);
 
-	rf->rf_our_slot = cpu_to_le32(ls->ls_slot);
-	rf->rf_num_slots = cpu_to_le32(num_slots);
+	rf->rf_our_slot = cpu_to_le16(ls->ls_slot);
+	rf->rf_num_slots = cpu_to_le16(num_slots);
 	rf->rf_generation =  cpu_to_le32(ls->ls_generation);
 }
 
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ