]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: fix jmicron checksum and LE to CPU
authorKarel Zak <kzak@redhat.com>
Fri, 21 Oct 2022 16:11:59 +0000 (18:11 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 21 Oct 2022 16:11:59 +0000 (18:11 +0200)
commitcb92f0d82ae634e46989d3dae673ae3f542f7dd9
treef65738149cc8643569f3084419e2fd06ee0d3a78
parent15ce5b753b6111838b12f80009b77b9ff29f11ba
libblkid: fix jmicron checksum and LE to CPU

- don't cast packed struct to uint16_t pointer, use temporary value
- calculate real count for the loop
- convert all to LE for checksum calculation (jm_to_cpu() ignores fillers)

Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid/src/superblocks/jmicron_raid.c