From: Thomas Weißschuh Date: Mon, 26 Dec 2022 23:07:58 +0000 (+0000) Subject: libblkid: sun: use generic checksum handling X-Git-Tag: v2.39-rc1~353^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b81043959446e4f848e5a9acea19d257acc3f23d;p=thirdparty%2Futil-linux.git libblkid: sun: use generic checksum handling --- diff --git a/libblkid/src/partitions/sun.c b/libblkid/src/partitions/sun.c index 058a663727..ce24364f51 100644 --- a/libblkid/src/partitions/sun.c +++ b/libblkid/src/partitions/sun.c @@ -33,7 +33,7 @@ static int probe_sun_pt(blkid_probe pr, goto nothing; } - if (sun_pt_checksum(l)) { + if (!blkid_probe_verify_csum(pr, sun_pt_checksum(l), 0)) { DBG(LOWPROBE, ul_debug( "detected corrupted sun disk label -- ignore")); goto nothing;