diff options
author | Karel Zak | 2013-02-07 10:47:32 +0100 |
---|---|---|
committer | Karel Zak | 2013-02-07 10:47:32 +0100 |
commit | de78b56461bbe2733dbedc317434f712188b929a (patch) | |
tree | c5b244c715c89b1d6040a512d3964c7306a79cb8 /libblkid/src/superblocks | |
parent | libblkid: improve Silicon RAID prober (diff) | |
download | kernel-qcow2-util-linux-de78b56461bbe2733dbedc317434f712188b929a.tar.gz kernel-qcow2-util-linux-de78b56461bbe2733dbedc317434f712188b929a.tar.xz kernel-qcow2-util-linux-de78b56461bbe2733dbedc317434f712188b929a.zip |
libblkid: add missing le16_to_cpu to sil raid prober
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libblkid/src/superblocks')
-rw-r--r-- | libblkid/src/superblocks/silicon_raid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libblkid/src/superblocks/silicon_raid.c b/libblkid/src/superblocks/silicon_raid.c index 3d4fe7a21..496a3e7b0 100644 --- a/libblkid/src/superblocks/silicon_raid.c +++ b/libblkid/src/superblocks/silicon_raid.c @@ -76,7 +76,7 @@ static int checksum(struct silicon_metadata *sil) while (count--) sum += *p++; - return (-sum & 0xFFFF) == sil->checksum1; + return (-sum & 0xFFFF) == le16_to_cpu(sil->checksum1); } static int probe_silraid(blkid_probe pr, |