summaryrefslogtreecommitdiffstats
path: root/libblkid/src/superblocks
diff options
context:
space:
mode:
authorKarel Zak2013-02-07 10:47:32 +0100
committerKarel Zak2013-02-07 10:47:32 +0100
commitde78b56461bbe2733dbedc317434f712188b929a (patch)
treec5b244c715c89b1d6040a512d3964c7306a79cb8 /libblkid/src/superblocks
parentlibblkid: improve Silicon RAID prober (diff)
downloadkernel-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.c2
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,