diff options
author | Karel Zak | 2018-02-26 23:48:45 +0100 |
---|---|---|
committer | Karel Zak | 2018-02-26 23:48:45 +0100 |
commit | 54b3434f68ac24604d77d03e2051852d6c7f74a5 (patch) | |
tree | 810fb3888c97da476824fb12e1ad010af5ea05d9 /libblkid | |
parent | blkzone: Fix a typo in blkzone.8 (diff) | |
download | kernel-qcow2-util-linux-54b3434f68ac24604d77d03e2051852d6c7f74a5.tar.gz kernel-qcow2-util-linux-54b3434f68ac24604d77d03e2051852d6c7f74a5.tar.xz kernel-qcow2-util-linux-54b3434f68ac24604d77d03e2051852d6c7f74a5.zip |
libblkid: (mpool) checksum is LE
Reported-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libblkid')
-rw-r--r-- | libblkid/src/superblocks/mpool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libblkid/src/superblocks/mpool.c b/libblkid/src/superblocks/mpool.c index ecc4714e4..b27569ef3 100644 --- a/libblkid/src/superblocks/mpool.c +++ b/libblkid/src/superblocks/mpool.c @@ -37,7 +37,7 @@ static int probe_mpool(blkid_probe pr, const struct blkid_idmag *mag) offsetof(struct omf_sb_descriptor, osb_cksum1)); sb_crc ^= ~0L; - if (!blkid_probe_verify_csum(pr, sb_crc, osd->osb_cksum1)) + if (!blkid_probe_verify_csum(pr, sb_crc, le32_to_cpu(osd->osb_cksum1))) return 1; blkid_probe_set_label(pr, osd->osb_name, sizeof(osd->osb_name)); |