]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libblkid: (ntfs) fix cluster size check
authorKarel Zak <kzak@redhat.com>
Fri, 25 May 2018 19:02:23 +0000 (21:02 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 11 Jul 2018 13:49:48 +0000 (15:49 +0200)
Addresses: https://github.com/karelzak/util-linux/issues/641
Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid/src/superblocks/ntfs.c

index 723d275030b79859733f91dffb10d2de2c0e2e7a..32973095ba188a427d331052ec6f6f287a52b41b 100644 (file)
@@ -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 */