]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super1.c
super1: Fix bblog_size accesses on big-ending machines.
authorNeilBrown <neilb@suse.com>
Fri, 29 Jan 2016 01:35:33 +0000 (12:35 +1100)
committerJes Sorensen <Jes.Sorensen@redhat.com>
Mon, 1 Feb 2016 22:07:25 +0000 (17:07 -0500)
commit27c7c87a6877a576cce02a667745ed4c12a60e22
tree6bfb5bac3c90caed0dd81256a491baa44e9a02fe
parentc61b1c0bb5ee7a09bb25250e6c12bcd4d4cafb0c
super1: Fix bblog_size accesses on big-ending machines.

bblog_size is 16bit so using le32_to_cpu on it is not wise
and leads to errors on big-endian machines.
Change all such calls to use le16.

Bug was introduced in mdadm-3.3

Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
super1.c