]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libblkid: (mpool) checksum is LE
authorKarel Zak <kzak@redhat.com>
Mon, 26 Feb 2018 22:48:45 +0000 (23:48 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 26 Feb 2018 22:48:45 +0000 (23:48 +0100)
Reported-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid/src/superblocks/mpool.c

index ecc4714e414d18f30a83fa5a4d1395df7274ba14..b27569ef3a05239a2b0277777bce34407d54024b 100644 (file)
@@ -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));