From: Karel Zak Date: Fri, 25 May 2018 19:02:23 +0000 (+0200) Subject: libblkid: (ntfs) fix cluster size check X-Git-Tag: v2.33-rc1~244 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3abbd0814cf479f709a2da5822a215db69c5a6d0;p=thirdparty%2Futil-linux.git libblkid: (ntfs) fix cluster size check Addresses: https://github.com/karelzak/util-linux/issues/641 Signed-off-by: Karel Zak --- diff --git a/libblkid/src/superblocks/ntfs.c b/libblkid/src/superblocks/ntfs.c index 723d275030..32973095ba 100644 --- a/libblkid/src/superblocks/ntfs.c +++ b/libblkid/src/superblocks/ntfs.c @@ -114,7 +114,7 @@ static int probe_ntfs(blkid_probe pr, const struct blkid_idmag *mag) } if ((uint16_t) le16_to_cpu(ns->bpb.sector_size) * - ns->bpb.sectors_per_cluster > NTFS_MAX_CLUSTER_SIZE) + sectors_per_cluster > NTFS_MAX_CLUSTER_SIZE) return 1; /* Unused fields must be zero */