From: Thomas Weißschuh Date: Mon, 26 Dec 2022 23:04:40 +0000 (+0000) Subject: libblkid: gpt: use generic checksum handling X-Git-Tag: v2.39-rc1~353^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b8c35b4aea9b5e383bfa98f975ccf7d1ad15db22;p=thirdparty%2Futil-linux.git libblkid: gpt: use generic checksum handling --- diff --git a/libblkid/src/partitions/gpt.c b/libblkid/src/partitions/gpt.c index af6257ab7f..89e7bb679b 100644 --- a/libblkid/src/partitions/gpt.c +++ b/libblkid/src/partitions/gpt.c @@ -241,7 +241,7 @@ static struct gpt_header *get_gpt_header( offsetof(struct gpt_header, header_crc32), sizeof(h->header_crc32)); - if (crc != le32_to_cpu(h->header_crc32)) { + if (!blkid_probe_verify_csum(pr, crc, le32_to_cpu(h->header_crc32))) { DBG(LOWPROBE, ul_debug("GPT header corrupted")); return NULL; }